Skip to content

Commit

Permalink
Switch from RC1 to the GA of OpenSearch 2.0 (#1826)
Browse files Browse the repository at this point in the history
Signed-off-by: Peter Nied <[email protected]>
  • Loading branch information
peternied authored May 12, 2022
1 parent ea90f30 commit 87a093f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 40 deletions.
5 changes: 2 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,8 @@ repositories {

ext {
isSnapshot = "true" == System.getProperty("build.snapshot", "true")
opensearch_version = System.getProperty("opensearch.version", "2.0.0-rc1-SNAPSHOT")
buildVersionQualifier = System.getProperty("build.version_qualifier", "rc1")
// 2.0.0-rc1-SNAPSHOT -> 2.0.0.0-rc1-SNAPSHOT
opensearch_version = System.getProperty("opensearch.version", "2.0.0-SNAPSHOT")
buildVersionQualifier = System.getProperty("build.version_qualifier", "")
version_tokens = opensearch_version.tokenize('-')
opensearch_build = version_tokens[0] + '.0'
if (buildVersionQualifier) {
Expand Down
6 changes: 3 additions & 3 deletions bwc-test/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ ext {

buildscript {
ext {
opensearch_version = System.getProperty("opensearch.version", "2.0.0-rc1-SNAPSHOT")
opensearch_version = System.getProperty("opensearch.version", "2.0.0-SNAPSHOT")
opensearch_group = "org.opensearch"
}
repositories {
Expand Down Expand Up @@ -76,13 +76,13 @@ dependencies {
String bwcVersion = "1.3.0.0";
String baseName = "securityBwcCluster"
String bwcFilePath = "src/test/resources/"
String projectVersion = "2.0.0.0-rc1"
String projectVersion = "2.0.0.0"

2.times {i ->
testClusters {
"${baseName}$i" {
testDistribution = "ARCHIVE"
versions = ["1.3.0","2.0.0-rc1"]
versions = ["1.3.0","2.0.0"]
numberOfNodes = 3
plugin(provider(new Callable<RegularFile>() {
@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -515,12 +515,6 @@ public int hashCode() {
return delegate.hashCode();
}

@Override
public void stringField(final FieldInfo fieldInfo, final String value) throws IOException {
fieldReadCallback.stringFieldRead(fieldInfo, value);
delegate.stringField(fieldInfo, value);
}

@Override
public void intField(final FieldInfo fieldInfo, final int value) throws IOException {
fieldReadCallback.numericFieldRead(fieldInfo, value);
Expand Down Expand Up @@ -604,11 +598,6 @@ public int hashCode() {
return delegate.hashCode();
}

@Override
public void stringField(final FieldInfo fieldInfo, final String value) throws IOException {
delegate.stringField(fieldInfo, value);
}

@Override
public void intField(final FieldInfo fieldInfo, final int value) throws IOException {
delegate.intField(fieldInfo, value);
Expand Down Expand Up @@ -675,17 +664,6 @@ public int hashCode() {
return delegate.hashCode();
}

@Override
public void stringField(final FieldInfo fieldInfo, final String value) throws IOException {
final Optional<MaskedField> mf = maskedFieldsMap.getMaskedField(fieldInfo.name);

if(mf.isPresent()) {
delegate.stringField(fieldInfo, mf.get().mask(value));
} else {
delegate.stringField(fieldInfo, value);
}
}

@Override
public void intField(final FieldInfo fieldInfo, final int value) throws IOException {
delegate.intField(fieldInfo, value);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,19 +103,14 @@ public void testNonSSLReindex() throws Exception {
String reindex = "{"+
"\"source\": {"+
"\"remote\": {"+
"\"host\": \"http://"+cl2Info.httpHost+":"+cl2Info.httpPort+"\","+
"\"username\": \"nagilum\","+
"\"password\": \"nagilum\""+
"},"+
"\"index\": \"twitter\","+
"\"size\": 10,"+
"\"query\": {"+
"\"match\": {"+
"\"_type\": \"_doc\""+
"}"+
"}"+
"\"host\": \"http://"+cl2Info.httpHost+":"+cl2Info.httpPort+"\","+
"\"username\": \"nagilum\","+
"\"password\": \"nagilum\""+
"},"+
"\"index\": \"twitter\","+
"\"size\": 10"+
"},"+
"\"dest\": {"+
"\"dest\": {"+
"\"index\": \"twutter\""+
"}"+
"}";
Expand Down

0 comments on commit 87a093f

Please sign in to comment.