Update the version checks around ip_range bucket keys, now that the change was backported.

This commit is contained in:
Julie Tibshirani 2018-05-24 08:55:14 -07:00
parent 3622486889
commit f55b09bae4
2 changed files with 4 additions and 4 deletions

View File

@ -213,8 +213,8 @@ setup:
---
"IP Range Key Generation":
- skip:
version: " - 6.99.99"
reason: "Before 7.0.0, ip_range did not always generate bucket keys (see #21045)."
version: " - 6.3.99"
reason: "Before 6.4.0, ip_range did not always generate bucket keys (see #21045)."
- do:
search:

View File

@ -74,7 +74,7 @@ public final class InternalBinaryRange
}
private static Bucket createFromStream(StreamInput in, DocValueFormat format, boolean keyed) throws IOException {
String key = in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)
String key = in.getVersion().onOrAfter(Version.V_6_4_0)
? in.readString()
: in.readOptionalString();
@ -88,7 +88,7 @@ public final class InternalBinaryRange
@Override
public void writeTo(StreamOutput out) throws IOException {
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
if (out.getVersion().onOrAfter(Version.V_6_4_0)) {
out.writeString(key);
} else {
out.writeOptionalString(key);