Commit c26f850
authored
Call afterWriteOperation after trim translog in peer recovery (#45182)
testShouldFlushAfterPeerRecovery was added #28350 to make sure the
flushing loop triggered by afterWriteOperation eventually terminates.
This test relies on the fact that we call afterWriteOperation after
making changes in translog. In #44756, we roll a new generation in
RecoveryTarget#finalizeRecovery but do not call afterWriteOperation.
Relates #28350
Relates #450731 parent ae7c071 commit c26f850
File tree
1 file changed
+5
-3
lines changed- server/src/main/java/org/elasticsearch/indices/recovery
1 file changed
+5
-3
lines changedLines changed: 5 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
295 | 295 | | |
296 | 296 | | |
297 | 297 | | |
298 | | - | |
299 | | - | |
300 | | - | |
301 | 298 | | |
302 | 299 | | |
303 | 300 | | |
304 | 301 | | |
305 | 302 | | |
306 | 303 | | |
307 | 304 | | |
| 305 | + | |
| 306 | + | |
308 | 307 | | |
309 | 308 | | |
| 309 | + | |
| 310 | + | |
| 311 | + | |
310 | 312 | | |
311 | 313 | | |
312 | 314 | | |
| |||
0 commit comments