File tree 1 file changed +1
-1
lines changed
server/src/main/java/org/elasticsearch/index/engine
1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -141,12 +141,12 @@ protected void ensureMaxSeqNoEqualsToGlobalCheckpoint(final SeqNoStats seqNoStat
141
141
final Version indexVersionCreated = engineConfig .getIndexSettings ().getIndexVersionCreated ();
142
142
if (indexVersionCreated .onOrAfter (Version .V_7_2_0 ) ||
143
143
(seqNoStats .getGlobalCheckpoint () != SequenceNumbers .UNASSIGNED_SEQ_NO )) {
144
+ assert assertMaxSeqNoEqualsToGlobalCheckpoint (seqNoStats .getMaxSeqNo (), seqNoStats .getGlobalCheckpoint ());
144
145
if (seqNoStats .getMaxSeqNo () != seqNoStats .getGlobalCheckpoint ()) {
145
146
throw new IllegalStateException ("Maximum sequence number [" + seqNoStats .getMaxSeqNo ()
146
147
+ "] from last commit does not match global checkpoint [" + seqNoStats .getGlobalCheckpoint () + "]" );
147
148
}
148
149
}
149
- assert assertMaxSeqNoEqualsToGlobalCheckpoint (seqNoStats .getMaxSeqNo (), seqNoStats .getGlobalCheckpoint ());
150
150
}
151
151
152
152
protected boolean assertMaxSeqNoEqualsToGlobalCheckpoint (final long maxSeqNo , final long globalCheckpoint ) {
You can’t perform that action at this time.
0 commit comments