Skip to content

Commit

Permalink
Reenable bwc tests for elastic#76475 (elastic#76576)
Browse files Browse the repository at this point in the history
Reenabling bwc tests after merge of elastic#76475
  • Loading branch information
imotov committed Aug 16, 2021
1 parent 7a4d320 commit 189f650
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -138,9 +138,9 @@ tasks.register("verifyVersions") {
* after the backport of the backcompat code is complete.
*/

boolean bwc_tests_enabled = false
boolean bwc_tests_enabled = true
// place a PR link here when committing bwc changes:
String bwc_tests_disabled_issue = "https://github.com/elastic/elasticsearch/pull/76475"
String bwc_tests_disabled_issue = ""
/*
* FIPS 140-2 behavior was fixed in 7.11.0. Before that there is no way to run elasticsearch in a
* JVM that is properly configured to be in fips mode with BCFIPS. For now we need to disable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ protected InternalMappedTerms(String name, BucketOrder reduceOrder, BucketOrder
*/
protected InternalMappedTerms(StreamInput in, Bucket.Reader<B> bucketReader) throws IOException {
super(in);
if (in.getVersion().onOrAfter(Version.V_8_0_0)) { // todo fix after backport
if (in.getVersion().onOrAfter(Version.V_7_15_0)) {
if (in.readBoolean()) {
docCountError = in.readZLong();
} else {
Expand All @@ -70,7 +70,7 @@ protected InternalMappedTerms(StreamInput in, Bucket.Reader<B> bucketReader) thr

@Override
protected final void writeTermTypeInfoTo(StreamOutput out) throws IOException {
if (out.getVersion().onOrAfter(Version.V_8_0_0)) { // todo fix after backport
if (out.getVersion().onOrAfter(Version.V_7_15_0)) {
if (docCountError != null) {
out.writeBoolean(true);
out.writeZLong(docCountError);
Expand Down

0 comments on commit 189f650

Please sign in to comment.