Skip to content

Commit

Permalink
Add 2.10.0 to bwc versions. (opensearch-project#8670)
Browse files Browse the repository at this point in the history
Forward port of opensearch-project#8667.

Also, the version `2.9.99` has been used in several places to mean 'the
last possible version before 3.0.0' which is not true given that 2.10.0
exists. This commit uses `2.99.99` instead. (Maybe I'll kick myself if
we do 90 more minor version releases on the 2.x line?)

Signed-off-by: Andrew Ross <andrross@amazon.com>
  • Loading branch information
andrross authored and baba-devv committed Jul 29, 2023
1 parent bf87d32 commit 01367d6
Show file tree
Hide file tree
Showing 15 changed files with 28 additions and 26 deletions.
1 change: 1 addition & 0 deletions .ci/bwcVersions
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,4 @@ BWC_VERSION:
- "2.8.0"
- "2.8.1"
- "2.9.0"
- "2.10.0"
1 change: 1 addition & 0 deletions libs/core/src/main/java/org/opensearch/Version.java
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ public class Version implements Comparable<Version>, ToXContentFragment {
public static final Version V_2_8_0 = new Version(2080099, org.apache.lucene.util.Version.LUCENE_9_6_0);
public static final Version V_2_8_1 = new Version(2080199, org.apache.lucene.util.Version.LUCENE_9_6_0);
public static final Version V_2_9_0 = new Version(2090099, org.apache.lucene.util.Version.LUCENE_9_7_0);
public static final Version V_2_10_0 = new Version(2100099, org.apache.lucene.util.Version.LUCENE_9_7_0);
public static final Version V_3_0_0 = new Version(3000099, org.apache.lucene.util.Version.LUCENE_9_7_0);
public static final Version CURRENT = V_3_0_0;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@
"Test set invalid search backpressure mode":

- skip:
version: "- 2.9.99"
version: "- 2.99.99"
reason: "Parsing and validation of SearchBackpressureMode does not exist in versions < 3.0"

- do:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ setup:
"Returns error if target index's metadata write is blocked":

- skip:
version: " - 2.9.99"
version: " - 2.99.99"
reason: "only available in 3.0+"

# block source index's write operations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# will return a task immediately and the clone operation will run in background.

- skip:
version: " - 2.9.99"
version: " - 2.99.99"
reason: "only available in 3.0+"
features: allowed_warnings

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# will return a task immediately and the merge process will run in background.

- skip:
version: " - 2.9.99"
version: " - 2.99.99"
reason: "only available in 3.0+"
features: allowed_warnings

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# will return a task immediately and the open operation will run in background.

- skip:
version: " - 2.9.99"
version: " - 2.99.99"
reason: "only available in 3.0+"
features: allowed_warnings

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ setup:
"Returns error if target index's metadata write is blocked":

- skip:
version: " - 2.9.99"
version: " - 2.99.99"
reason: "only available in 3.0+"

# block source index's write operations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# number_of_shards for the target index.

- skip:
version: " - 2.9.99"
version: " - 2.99.99"
reason: "only available in 3.0+"
features: allowed_warnings

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# will return a task immediately and the shrink operation will run in background.

- skip:
version: " - 2.9.99"
version: " - 2.99.99"
reason: "only available in 3.0+"
features: allowed_warnings

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ setup:
"Returns error if target index's metadata write is blocked":

- skip:
version: " - 2.9.99"
version: " - 2.99.99"
reason: "only available in 3.0+"

# block source index's write operations
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
# will return a task immediately and the split operation will run in background.

- skip:
version: " - 2.9.99"
version: " - 2.99.99"
reason: "only available in 3.0+"
features: allowed_warnings

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
---
"Delete all":
- skip:
version: " - 2.9.99"
version: " - 2.99.99"
reason: "mode to be introduced later than 3.0"
- do:
indices.create:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ setup:

- do:
node_selector:
version: "- 2.9.99"
version: "- 2.99.99"
search:
rest_total_hits_as_int: true
body:
Expand Down Expand Up @@ -88,7 +88,7 @@ setup:
"Basic 3.x test":

- skip:
version: "- 2.9.99"
version: "- 2.99.99"
features: node_selector
reason: "t-digest 3.2 was interpolating leading to incorrect percentiles"

Expand Down Expand Up @@ -129,7 +129,7 @@ setup:
"Compression test":

- skip:
version: "- 2.9.99"
version: "- 2.99.99"
features: node_selector
reason: "t-digest 3.2 was interpolating leading to incorrect percentiles"

Expand Down Expand Up @@ -174,7 +174,7 @@ setup:
"Only aggs test":

- skip:
version: "- 2.9.99"
version: "- 2.99.99"
features: node_selector
reason: "t-digest 3.2 was interpolating leading to incorrect percentiles"

Expand Down Expand Up @@ -216,7 +216,7 @@ setup:
"Filtered test":

- skip:
version: "- 2.9.99"
version: "- 2.99.99"
features: node_selector
reason: "t-digest 3.2 was interpolating leading to incorrect percentiles"

Expand Down Expand Up @@ -303,7 +303,7 @@ setup:
"Metadata test":

- skip:
version: "- 2.9.99"
version: "- 2.99.99"
features: node_selector
reason: "t-digest 3.2 was interpolating leading to incorrect percentiles"

Expand Down Expand Up @@ -395,7 +395,7 @@ setup:
"Explicit Percents test":

- skip:
version: "- 2.9.99"
version: "- 2.99.99"
features: node_selector
reason: "t-digest 3.2 was interpolating leading to incorrect percentiles"

Expand Down Expand Up @@ -431,7 +431,7 @@ setup:
"Non-keyed test":

- skip:
version: "- 2.9.99"
version: "- 2.99.99"
features: node_selector
reason: "t-digest 3.2 was interpolating leading to incorrect percentiles"

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ setup:

- do:
node_selector:
version: "- 2.9.99"
version: "- 2.99.99"
search:
rest_total_hits_as_int: true
body:
Expand Down Expand Up @@ -136,7 +136,7 @@ setup:

- do:
node_selector:
version: "- 2.9.99"
version: "- 2.99.99"
search:
rest_total_hits_as_int: true
body:
Expand Down Expand Up @@ -224,7 +224,7 @@ setup:

- do:
node_selector:
version: "- 2.9.99"
version: "- 2.99.99"
search:
rest_total_hits_as_int: true
body:
Expand Down Expand Up @@ -306,7 +306,7 @@ setup:

- do:
node_selector:
version: "- 2.9.99"
version: "- 2.99.99"
search:
rest_total_hits_as_int: true
body:
Expand Down Expand Up @@ -398,7 +398,7 @@ setup:

- do:
node_selector:
version: "- 2.9.99"
version: "- 2.99.99"
search:
rest_total_hits_as_int: true
body:
Expand Down Expand Up @@ -464,7 +464,7 @@ setup:

- do:
node_selector:
version: "- 2.9.99"
version: "- 2.99.99"
search:
rest_total_hits_as_int: true
body:
Expand Down Expand Up @@ -534,7 +534,7 @@ setup:

- do:
node_selector:
version: "- 2.9.99"
version: "- 2.99.99"
search:
rest_total_hits_as_int: true
body:
Expand Down

0 comments on commit 01367d6

Please sign in to comment.