Skip to content

Commit 8972eba

Browse files
authored
Enable bwc tests now that #38443 is backported. (#38462)
1 parent 34f2cc7 commit 8972eba

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -159,8 +159,8 @@ task verifyVersions {
159159
* the enabled state of every bwc task. It should be set back to true
160160
* after the backport of the backcompat code is complete.
161161
*/
162-
final boolean bwc_tests_enabled = false
163-
final String bwc_tests_disabled_issue = "https://github.com/elastic/elasticsearch/pull/38443" /* place a PR link here when committing bwc changes */
162+
final boolean bwc_tests_enabled = true
163+
final String bwc_tests_disabled_issue = "" /* place a PR link here when committing bwc changes */
164164
if (bwc_tests_enabled == false) {
165165
if (bwc_tests_disabled_issue.isEmpty()) {
166166
throw new GradleException("bwc_tests_disabled_issue must be set when bwc_tests_enabled == false")

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/ccr/action/PutAutoFollowPatternAction.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ public Request(StreamInput in) throws IOException {
153153
remoteCluster = in.readString();
154154
leaderIndexPatterns = in.readStringList();
155155
followIndexNamePattern = in.readOptionalString();
156-
if (in.getVersion().onOrAfter(Version.V_7_0_0)) {
156+
if (in.getVersion().onOrAfter(Version.V_6_7_0)) {
157157
parameters = new FollowParameters(in);
158158
} else {
159159
parameters = new FollowParameters();
@@ -177,7 +177,7 @@ public void writeTo(StreamOutput out) throws IOException {
177177
out.writeString(remoteCluster);
178178
out.writeStringCollection(leaderIndexPatterns);
179179
out.writeOptionalString(followIndexNamePattern);
180-
if (out.getVersion().onOrAfter(Version.V_7_0_0)) {
180+
if (out.getVersion().onOrAfter(Version.V_6_7_0)) {
181181
parameters.writeTo(out);
182182
} else {
183183
out.writeOptionalVInt(parameters.maxReadRequestOperationCount);

0 commit comments

Comments
 (0)