Commit 1bc218a
committed
Fail primary term and generation listeners on a closed shard
If a shard has been closed, we should quickly bail out and fail
all waiting primary term and generation listeners. Otherwise,
the engine implementation may try to successfully to complete the
provided listeners and perform operations on an already closed
shard and cause some unexpected errors.1 parent 54eab9d commit 1bc218a
File tree
2 files changed
+23
-5
lines changed- server/src
- main/java/org/elasticsearch/index/shard
- test/java/org/elasticsearch/index/shard
2 files changed
+23
-5
lines changedLines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4494 | 4494 | | |
4495 | 4495 | | |
4496 | 4496 | | |
4497 | | - | |
4498 | | - | |
4499 | | - | |
4500 | | - | |
4501 | | - | |
| 4497 | + | |
| 4498 | + | |
| 4499 | + | |
| 4500 | + | |
| 4501 | + | |
| 4502 | + | |
| 4503 | + | |
4502 | 4504 | | |
4503 | 4505 | | |
4504 | 4506 | | |
| |||
Lines changed: 16 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3334 | 3334 | | |
3335 | 3335 | | |
3336 | 3336 | | |
| 3337 | + | |
| 3338 | + | |
| 3339 | + | |
| 3340 | + | |
| 3341 | + | |
| 3342 | + | |
| 3343 | + | |
| 3344 | + | |
| 3345 | + | |
| 3346 | + | |
| 3347 | + | |
| 3348 | + | |
| 3349 | + | |
| 3350 | + | |
| 3351 | + | |
| 3352 | + | |
3337 | 3353 | | |
3338 | 3354 | | |
3339 | 3355 | | |
| |||
0 commit comments