Commit 0b493e5
authored
Fix testSeqNoCollision (#52154)
We roll a new translog generation and trim operations that are above the
global checkpoint during primary-replica resync. If the initOperations
is empty, then the stale operation on the replica2 will be discarded as
it is the only operation in a translog file (since #51905 where we
started using the local checkpoint to calculate the minimum required
translog generation for recovery). Otherwise, the stale op will be
retained along with initOperations but will be skipped in snapshots.
Relates #51905
Closes #521481 parent 1f144f2 commit 0b493e5
File tree
1 file changed
+6
-5
lines changed- server/src/test/java/org/elasticsearch/index/replication
1 file changed
+6
-5
lines changedLines changed: 6 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
536 | 536 | | |
537 | 537 | | |
538 | 538 | | |
539 | | - | |
540 | 539 | | |
541 | 540 | | |
542 | 541 | | |
| |||
565 | 564 | | |
566 | 565 | | |
567 | 566 | | |
568 | | - | |
569 | | - | |
570 | 567 | | |
571 | 568 | | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
572 | 573 | | |
573 | 574 | | |
574 | 575 | | |
575 | | - | |
| 576 | + | |
576 | 577 | | |
577 | 578 | | |
578 | 579 | | |
579 | 580 | | |
580 | | - | |
| 581 | + | |
581 | 582 | | |
582 | 583 | | |
583 | 584 | | |
| |||
0 commit comments