Skip to content

Commit 774690b

Browse files
committed
Defuse timebomb
1 parent 28b999c commit 774690b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

server/src/main/java/org/elasticsearch/index/seqno/ReplicationTracker.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ public synchronized void updateRetentionLeasesOnReplica(final RetentionLeases re
331331
public RetentionLeases loadRetentionLeases(final Path path) throws IOException {
332332
final RetentionLeases retentionLeases = RetentionLeases.FORMAT.loadLatestState(logger, NamedXContentRegistry.EMPTY, path);
333333
if (retentionLeases == null) {
334-
if (Version.CURRENT.major == 8) { // TODO remove this after backporting
334+
if (8 <= Version.CURRENT.major) { // TODO remove this after backporting
335335
throw new IllegalStateException("no retention leases file found");
336336
} else {
337337
// upgrading from a 6.x version in which no retention leases were persisted

0 commit comments

Comments
 (0)