Commit a16d5c5
committed
IndexShard - only flush on primary activation if it's a relocation target from an old node
#27580 added extra flushes when a shard transitions to primary to make sure that we never replay translog ops without seq# during recovery. The current logic causes an extra flush when a primary starts when it's recovering from the store. This is not needed as we also flush in the engine itself (to add sequence numbers info into the commit). This double flushing confuses tests and is unneeded.
Fixes #276491 parent 4dd36d4 commit a16d5c5
File tree
2 files changed
+6
-6
lines changed- core/src/main/java/org/elasticsearch/index/shard
- qa/full-cluster-restart/src/test/java/org/elasticsearch/upgrades
2 files changed
+6
-6
lines changedLines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
66 | 66 | | |
67 | 67 | | |
68 | 68 | | |
69 | | - | |
70 | 69 | | |
71 | 70 | | |
72 | 71 | | |
| |||
143 | 142 | | |
144 | 143 | | |
145 | 144 | | |
146 | | - | |
147 | 145 | | |
148 | 146 | | |
149 | 147 | | |
| |||
413 | 411 | | |
414 | 412 | | |
415 | 413 | | |
| 414 | + | |
416 | 415 | | |
417 | 416 | | |
418 | | - | |
419 | 417 | | |
| 418 | + | |
| 419 | + | |
420 | 420 | | |
421 | 421 | | |
422 | 422 | | |
| |||
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
613 | 613 | | |
614 | 614 | | |
615 | 615 | | |
616 | | - | |
617 | 616 | | |
618 | 617 | | |
619 | 618 | | |
| |||
694 | 693 | | |
695 | 694 | | |
696 | 695 | | |
697 | | - | |
698 | | - | |
| 696 | + | |
| 697 | + | |
| 698 | + | |
699 | 699 | | |
700 | 700 | | |
701 | 701 | | |
| |||
0 commit comments