Commit d153a7f
authored
Fix ThreadPoolMergeExecutorServiceTests testIORateIsAdjustedForAllRunningMergeTasks (elastic#130545) (elastic#130562)
The test submits merge tasks that support IO throttling, and asserts
that all the currently running merge tasks are indeed IO throttled after
the new one was submitted.
The test erroneously tried to assert a property on the set of currently
running merge tasks, which is very difficult to do since all merge tasks
are possibly backlogged and re-enqueued asynchronously multiple times
before they are run or aborted (so looking at the threadpool merge task
queue there's no telling which merge task will execute first).
Fixes elastic#1295311 parent dc7e696 commit d153a7f
File tree
2 files changed
+1
-16
lines changed- server/src/test/java/org/elasticsearch/index/engine
2 files changed
+1
-16
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
276 | 276 | | |
277 | 277 | | |
278 | 278 | | |
279 | | - | |
280 | | - | |
281 | | - | |
282 | 279 | | |
283 | 280 | | |
284 | 281 | | |
| |||
Lines changed: 1 addition & 13 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
55 | 54 | | |
56 | 55 | | |
57 | 56 | | |
| |||
329 | 328 | | |
330 | 329 | | |
331 | 330 | | |
332 | | - | |
333 | 331 | | |
334 | 332 | | |
335 | 333 | | |
| |||
347 | 345 | | |
348 | 346 | | |
349 | 347 | | |
350 | | - | |
351 | 348 | | |
352 | 349 | | |
353 | | - | |
354 | 350 | | |
355 | 351 | | |
356 | 352 | | |
357 | 353 | | |
358 | | - | |
359 | 354 | | |
360 | 355 | | |
361 | | - | |
362 | 356 | | |
363 | 357 | | |
364 | | - | |
365 | | - | |
366 | | - | |
367 | | - | |
368 | | - | |
369 | | - | |
370 | | - | |
| 358 | + | |
371 | 359 | | |
372 | 360 | | |
373 | 361 | | |
| |||
0 commit comments