Skip to content

Commit cd02e1f

Browse files
authored
Bump the version to 2.1 (#398)
Signed-off-by: Ankit Kala <[email protected]>
1 parent 0a7b4a6 commit cd02e1f

File tree

4 files changed

+7
-16
lines changed

4 files changed

+7
-16
lines changed

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ import org.opensearch.gradle.test.RestIntegTestTask
3636
buildscript {
3737
ext {
3838
isSnapshot = "true" == System.getProperty("build.snapshot", "true")
39-
opensearch_version = System.getProperty("opensearch.version", "2.0.0-rc1-SNAPSHOT")
40-
buildVersionQualifier = System.getProperty("build.version_qualifier", "rc1")
41-
// 2.0.0-rc1-SNAPSHOT -> 2.0.0.0-rc1-SNAPSHOT
39+
opensearch_version = System.getProperty("opensearch.version", "2.1.0-SNAPSHOT")
40+
buildVersionQualifier = System.getProperty("build.version_qualifier", "")
41+
// e.g. 2.0.0-rc1-SNAPSHOT -> 2.0.0.0-rc1-SNAPSHOT
4242
version_tokens = opensearch_version.tokenize('-')
4343
opensearch_build = version_tokens[0] + '.0'
4444
if (buildVersionQualifier) {
@@ -140,7 +140,7 @@ repositories {
140140
mavenCentral()
141141
maven { url "https://aws.oss.sonatype.org/content/repositories/snapshots" }
142142
maven { url "https://plugins.gradle.org/m2/" }
143-
maven { url "https://aws.oss.sonatype.org/content/repositories/snapshots" }
143+
maven { url "https://d1nvenhzbhpy0q.cloudfront.net/snapshots/lucene/" }
144144
}
145145

146146
compileKotlin {

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,6 @@
1111

1212
distributionBase=GRADLE_USER_HOME
1313
distributionPath=wrapper/dists
14-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.3.3-all.zip
14+
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-all.zip
1515
zipStoreBase=GRADLE_USER_HOME
1616
zipStorePath=wrapper/dists

src/test/kotlin/org/opensearch/replication/MultiClusterRestTestCase.kt

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -515,16 +515,7 @@ abstract class MultiClusterRestTestCase : OpenSearchTestCase() {
515515

516516
var parser = XContentType.JSON.xContent().createParser(NamedXContentRegistry.EMPTY, DeprecationHandler.THROW_UNSUPPORTED_OPERATION, resp)
517517
var nodes = mutableListOf<String>()
518-
parser.list().forEach{ item ->
519-
val entryValue = item.toString()
520-
521-
val map = entryValue.subSequence(1,entryValue.length-1).split(",").associate {
522-
val (key, value) = it.trim().split("=")
523-
key to value
524-
}
525-
nodes.add(map.get("name").orEmpty())
526-
}
527-
518+
parser.list().forEach{ item -> nodes.add((item as HashMap<String, String>)["name"].orEmpty())}
528519
return nodes
529520
}
530521

src/test/kotlin/org/opensearch/replication/ReplicationHelpers.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ fun RestHighLevelClient.startReplication(request: StartReplicationRequest,
9696
waitForNoInitializingShards()
9797
}
9898
fun getAckResponse(lowLevelResponse: Response): AcknowledgedResponse {
99-
val xContentType = XContentType.fromMediaTypeOrFormat(lowLevelResponse.entity.contentType.value)
99+
val xContentType = XContentType.fromMediaType(lowLevelResponse.entity.contentType.value)
100100
val xcp = xContentType.xContent().createParser(NamedXContentRegistry.EMPTY, DeprecationHandler.IGNORE_DEPRECATIONS,
101101
lowLevelResponse.entity.content)
102102
return AcknowledgedResponse.fromXContent(xcp)

0 commit comments

Comments
 (0)