Commit ff30fad
authored
Fix testCancelOnExpiry (#146015)
The test failed because it used a small keep_alive on submission,
leading to cases where data-node drivers were slow to start and the
query was cancelled before any driver had started. This PR modifies the
test to check for cancellation in two steps: submit with a large
keep_alive and wait until at least one data-node driver has started,
then adjust the keep_alive to a much smaller interval and expect
cancellation to happen.
Closes #1455021 parent 038d0b4 commit ff30fad
File tree
2 files changed
+27
-5
lines changed- x-pack/plugin/esql/src/internalClusterTest/java/org/elasticsearch/xpack/esql/action
2 files changed
+27
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | 220 | | |
224 | 221 | | |
225 | 222 | | |
| |||
Lines changed: 27 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
334 | | - | |
335 | 334 | | |
| 335 | + | |
336 | 336 | | |
337 | 337 | | |
338 | | - | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
339 | 341 | | |
| 342 | + | |
340 | 343 | | |
341 | 344 | | |
342 | 345 | | |
343 | 346 | | |
344 | 347 | | |
345 | 348 | | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
| 360 | + | |
| 361 | + | |
| 362 | + | |
| 363 | + | |
| 364 | + | |
| 365 | + | |
| 366 | + | |
| 367 | + | |
| 368 | + | |
| 369 | + | |
| 370 | + | |
346 | 371 | | |
347 | 372 | | |
348 | 373 | | |
| |||
0 commit comments