Fix bwc version of sanity check of read only engine

Relates #41041
This commit is contained in:
Nhat Nguyen 2019-04-17 10:25:47 -04:00
parent aa0c957a4a
commit 2ee87c99d9
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ public class ReadOnlyEngine extends Engine {
// created after the refactoring of the Close Index API and its TransportVerifyShardBeforeCloseAction
// that guarantee that all operations have been flushed to Lucene.
final Version indexVersionCreated = engineConfig.getIndexSettings().getIndexVersionCreated();
if (indexVersionCreated.onOrAfter(Version.V_8_0_0) ||
if (indexVersionCreated.onOrAfter(Version.V_7_1_0) ||
(seqNoStats.getGlobalCheckpoint() != SequenceNumbers.UNASSIGNED_SEQ_NO && indexVersionCreated.onOrAfter(Version.V_6_7_0))) {
if (seqNoStats.getMaxSeqNo() != seqNoStats.getGlobalCheckpoint()) {
throw new IllegalStateException("Maximum sequence number [" + seqNoStats.getMaxSeqNo()