Commit 4c9da78
Fix
Only one of concurrent `prepareAddBlock` calls actually wins a race to
add the block, so we need to check `assertIndexHasBlock` if
the add index block has been acknowledged
Resolve #122324
Co-authored-by: Oleksandr Kolomiiets <[email protected]>SimpleBlocksIT#testConcurrentAddBlock (#126918)1 parent 96402aa commit 4c9da78
File tree
2 files changed
+5
-5
lines changed- server/src/internalClusterTest/java/org/elasticsearch/blocks
2 files changed
+5
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
143 | 143 | | |
144 | 144 | | |
145 | 145 | | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | 146 | | |
150 | 147 | | |
151 | 148 | | |
| |||
Lines changed: 5 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
417 | | - | |
| 416 | + | |
| 417 | + | |
| 418 | + | |
| 419 | + | |
| 420 | + | |
418 | 421 | | |
419 | 422 | | |
420 | 423 | | |
| |||
0 commit comments