Commit 3e5e367
authored
Fix Tripped Assertion on Resync during Node Shutdown (elastic#71062) (elastic#71100)
We can have a race here where the closed check passes and then we concurrently to
a shard close try to fail the shard also. Previously this was covered by the catch below
the changed code that would just ignore the already-closed exception but with elastic#69949 we're
now forking to the generic pool for this logic and thus have to handle the exception in the
callback as well.1 parent d8125bd commit 3e5e367
File tree
1 file changed
+5
-1
lines changed- server/src/main/java/org/elasticsearch/index/shard
1 file changed
+5
-1
lines changedLines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
592 | 592 | | |
593 | 593 | | |
594 | 594 | | |
595 | | - | |
| 595 | + | |
| 596 | + | |
| 597 | + | |
| 598 | + | |
| 599 | + | |
596 | 600 | | |
597 | 601 | | |
598 | 602 | | |
| |||
0 commit comments