* Fix InternalEngineTests.testSeqNoAndCheckpoints If we force flush while possibly triggering a merge the local checkpoint may change from the expectation from the loop that just increments on every operation. Closes #51604
This commit is contained in:
parent
4fcf5a9de4
commit
9c7a63214c
|
@ -2433,7 +2433,7 @@ public class InternalEngineTests extends EngineTestCase {
|
|||
id = randomFrom(indexedIds);
|
||||
final Engine.Delete delete = new Engine.Delete(
|
||||
"test", id, newUid(id), UNASSIGNED_SEQ_NO, primaryTerm.get(),
|
||||
rarely() ? 100 : Versions.MATCH_ANY, VersionType.INTERNAL, PRIMARY, 0, UNASSIGNED_SEQ_NO, 0);
|
||||
rarely() ? 100 : Versions.MATCH_ANY, VersionType.INTERNAL, PRIMARY, System.nanoTime(), UNASSIGNED_SEQ_NO, 0);
|
||||
final Engine.DeleteResult result = initialEngine.delete(delete);
|
||||
if (result.getResultType() == Engine.Result.Type.SUCCESS) {
|
||||
assertThat(result.getSeqNo(), equalTo(primarySeqNo + 1));
|
||||
|
@ -2451,7 +2451,7 @@ public class InternalEngineTests extends EngineTestCase {
|
|||
final Engine.Index index = new Engine.Index(newUid(doc), doc,
|
||||
UNASSIGNED_SEQ_NO, primaryTerm.get(),
|
||||
rarely() ? 100 : Versions.MATCH_ANY, VersionType.INTERNAL,
|
||||
PRIMARY, 0, -1, false, UNASSIGNED_SEQ_NO, 0);
|
||||
PRIMARY, System.nanoTime(), -1, false, UNASSIGNED_SEQ_NO, 0);
|
||||
final Engine.IndexResult result = initialEngine.index(index);
|
||||
if (result.getResultType() == Engine.Result.Type.SUCCESS) {
|
||||
assertThat(result.getSeqNo(), equalTo(primarySeqNo + 1));
|
||||
|
|
Loading…
Reference in New Issue