Skip to content

Commit

Permalink
Reenable BWC tests and adapt BWC layer for Pause/Resume auto-follower…
Browse files Browse the repository at this point in the history
… API (#47971)

This commit reenables bwc tests and adapts the bwc serialization layer for #47904
  • Loading branch information
tlrx authored Oct 13, 2019
1 parent a41287e commit 20a3b4b
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -205,8 +205,8 @@ task verifyVersions {
* after the backport of the backcompat code is complete.
*/

boolean bwc_tests_enabled = false
final String bwc_tests_disabled_issue = "https://github.com/elastic/elasticsearch/pull/47904" /* place a PR link here when committing bwc changes */
boolean bwc_tests_enabled = true
final String bwc_tests_disabled_issue = "" /* place a PR link here when committing bwc changes */
if (bwc_tests_enabled == false) {
if (bwc_tests_disabled_issue.isEmpty()) {
throw new GradleException("bwc_tests_disabled_issue must be set when bwc_tests_enabled == false")
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
---
"Test pause and resume auto follow pattern":
- skip:
version: " - 7.9.99"
reason: "pause/resume auto-follow patterns is supported since 8.0"
version: " - 7.4.99"
reason: "pause/resume auto-follow patterns is supported since 7.5.0"

- do:
cluster.state: {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ private AutoFollowPattern(String remoteCluster, List<String> leaderIndexPatterns
this.remoteCluster = remoteCluster;
this.leaderIndexPatterns = leaderIndexPatterns;
this.followIndexPattern = followIndexPattern;
if (in.getVersion().onOrAfter(Version.V_8_0_0)) {
if (in.getVersion().onOrAfter(Version.V_7_5_0)) {
this.active = in.readBoolean();
} else {
this.active = true;
Expand Down Expand Up @@ -270,7 +270,7 @@ public void writeTo(StreamOutput out) throws IOException {
out.writeStringCollection(leaderIndexPatterns);
out.writeOptionalString(followIndexPattern);
super.writeTo(out);
if (out.getVersion().onOrAfter(Version.V_8_0_0)) {
if (out.getVersion().onOrAfter(Version.V_7_5_0)) {
out.writeBoolean(active);
}
}
Expand Down

0 comments on commit 20a3b4b

Please sign in to comment.