Skip to content

Commit 5dc6388

Browse files
committed
lower rollover-info version bound to 6.4
This feature is supported in 6.4, this commit reflects that
1 parent f012de0 commit 5dc6388

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

server/src/main/java/org/elasticsearch/cluster/metadata/IndexMetaData.java

+4-4
Original file line numberDiff line numberDiff line change
@@ -693,7 +693,7 @@ public Diff<Custom> readDiff(StreamInput in, String key) throws IOException {
693693
});
694694
inSyncAllocationIds = DiffableUtils.readImmutableOpenIntMapDiff(in, DiffableUtils.getVIntKeySerializer(),
695695
DiffableUtils.StringSetValueSerializer.getInstance());
696-
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
696+
if (in.getVersion().onOrAfter(Version.V_6_4_0)) {
697697
rolloverInfos = DiffableUtils.readImmutableOpenMapDiff(in, DiffableUtils.getStringKeySerializer(), RolloverInfo::new,
698698
RolloverInfo::readDiffFrom);
699699
} else {
@@ -714,7 +714,7 @@ public void writeTo(StreamOutput out) throws IOException {
714714
aliases.writeTo(out);
715715
customs.writeTo(out);
716716
inSyncAllocationIds.writeTo(out);
717-
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
717+
if (out.getVersion().onOrAfter(Version.V_6_4_0)) {
718718
rolloverInfos.writeTo(out);
719719
}
720720
}
@@ -765,7 +765,7 @@ public static IndexMetaData readFrom(StreamInput in) throws IOException {
765765
Set<String> allocationIds = DiffableUtils.StringSetValueSerializer.getInstance().read(in, key);
766766
builder.putInSyncAllocationIds(key, allocationIds);
767767
}
768-
if (in.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
768+
if (in.getVersion().onOrAfter(Version.V_6_4_0)) {
769769
int rolloverAliasesSize = in.readVInt();
770770
for (int i = 0; i < rolloverAliasesSize; i++) {
771771
builder.putRolloverInfo(new RolloverInfo(in));
@@ -800,7 +800,7 @@ public void writeTo(StreamOutput out) throws IOException {
800800
out.writeVInt(cursor.key);
801801
DiffableUtils.StringSetValueSerializer.getInstance().write(cursor.value, out);
802802
}
803-
if (out.getVersion().onOrAfter(Version.V_7_0_0_alpha1)) {
803+
if (out.getVersion().onOrAfter(Version.V_6_4_0)) {
804804
out.writeVInt(rolloverInfos.size());
805805
for (ObjectCursor<RolloverInfo> cursor : rolloverInfos.values()) {
806806
cursor.value.writeTo(out);

0 commit comments

Comments
 (0)