Skip to content

Commit 718d79c

Browse files
authored
Adjust BWC version for compressing async search response (#74882)
Relates #74766
1 parent eadf9a9 commit 718d79c

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
@@ -144,9 +144,9 @@ tasks.register("verifyVersions") {
144144
* after the backport of the backcompat code is complete.
145145
*/
146146

147-
boolean bwc_tests_enabled = false
147+
boolean bwc_tests_enabled = true
148148
// place a PR link here when committing bwc changes:
149-
String bwc_tests_disabled_issue = "https://github.com/elastic/elasticsearch/pull/74804"
149+
String bwc_tests_disabled_issue = ""
150150
/*
151151
* FIPS 140-2 behavior was fixed in 7.11.0. Before that there is no way to run elasticsearch in a
152152
* JVM that is properly configured to be in fips mode with BCFIPS. For now we need to disable

x-pack/plugin/core/src/main/java/org/elasticsearch/xpack/core/async/AsyncTaskIndexService.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,7 @@ public void close() {
592592
};
593593
final Version minNodeVersion = clusterService.state().nodes().getMinNodeVersion();
594594
Version.writeVersion(minNodeVersion, new OutputStreamStreamOutput(os));
595-
if (minNodeVersion.onOrAfter(Version.V_8_0_0)) {
595+
if (minNodeVersion.onOrAfter(Version.V_7_15_0)) {
596596
os = CompressorFactory.COMPRESSOR.threadLocalOutputStream(os);
597597
}
598598
try (OutputStreamStreamOutput out = new OutputStreamStreamOutput(os)) {
@@ -617,7 +617,7 @@ public int read() {
617617
});
618618
final Version version = Version.readVersion(new InputStreamStreamInput(encodedIn));
619619
assert version.onOrBefore(Version.CURRENT) : version + " >= " + Version.CURRENT;
620-
if (version.onOrAfter(Version.V_8_0_0)) {
620+
if (version.onOrAfter(Version.V_7_15_0)) {
621621
encodedIn = CompressorFactory.COMPRESSOR.threadLocalInputStream(encodedIn);
622622
}
623623
try (StreamInput in = new NamedWriteableAwareStreamInput(new InputStreamStreamInput(encodedIn), registry)) {

0 commit comments

Comments
 (0)