Commit f713e7b
committed
Fix assertion in DiskThresholdDeciderIT
The test launches two concurrent restores and wants to verify that
the node with limited disk space is only assigned a single shard from
one of the indices. The test was asserting that it had one shard from
the first index, but it is possible for it to get one shard from the
index copy instead. This change allows the shard to be from either
index, but still asserts there is only one assignment to the tiny node.
Closes #1272861 parent c5c3615 commit f713e7b
File tree
2 files changed
+12
-7
lines changed- server/src/internalClusterTest/java/org/elasticsearch/cluster/routing/allocation/decider
2 files changed
+12
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
444 | 444 | | |
445 | 445 | | |
446 | 446 | | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | 447 | | |
451 | 448 | | |
452 | 449 | | |
| |||
Lines changed: 12 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| |||
242 | 241 | | |
243 | 242 | | |
244 | 243 | | |
245 | | - | |
| 244 | + | |
246 | 245 | | |
247 | 246 | | |
248 | 247 | | |
| |||
268 | 267 | | |
269 | 268 | | |
270 | 269 | | |
271 | | - | |
| 270 | + | |
272 | 271 | | |
273 | 272 | | |
274 | | - | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
| 279 | + | |
| 280 | + | |
| 281 | + | |
| 282 | + | |
275 | 283 | | |
276 | 284 | | |
277 | 285 | | |
| |||
0 commit comments