Repository navigation
Commit 40891ac
committed
test: correct the "java concurrency bug" note, and run the crash tests properly
I diagnosed this wrong. The eight table_buffering files that failed at -j 6
were not a concurrency bug in the buffered path, and not specific to any SDK.
table_buffering_{worker_crash,pool_recovery}.test are gated on
VGI_TEST_DEDICATED_WORKER because their `crash_on_process` fixture SIGKILLs the
worker serving it, and both files ATTACH ${VGI_TEST_WORKER} — the LAUNCHER
location on these lanes, not a dedicated binary. Setting the gate var while
VGI_TEST_WORKER is a shared-worker location un-skips them, so the SIGKILL takes
out the one process every concurrent DuckDB is talking to. The other files then
report "RPC response stream EOF" / "Broken pipe": collateral damage, not a race
of their own. Serially it hides, because the launcher just respawns the worker
for the next test.
run_tests.py already leaves the var unset for shared-worker transports (its
env.setdefault only fires for a bare-path VGI_TEST_WORKER); vgi-java's Makefile
was setting it unconditionally and defeating that, which is the actual bug and
is fixed in that repo. My own attempt to wire it into test_python hit exactly
the same wall, and I recorded the wrong reason for backing it out.
So: correct the comment, and stop losing the two tests. test_python_crash runs
them over the SUBPROCESS transport, where each DuckDB process owns a private
worker it can watch die — the shape they were written for — and test_python
chains it after the main suite. Same fix vgi-java applied. 2 passed.1 parent 61eecc1 commit 40891ac
1 file changed
Lines changed: 32 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
413 | 413 | | |
414 | 414 | | |
415 | 415 | | |
416 | | - | |
| 416 | + | |
417 | 417 | | |
418 | 418 | | |
419 | 419 | | |
| |||
425 | 425 | | |
426 | 426 | | |
427 | 427 | | |
428 | | - | |
429 | | - | |
430 | | - | |
431 | | - | |
432 | | - | |
433 | | - | |
434 | | - | |
435 | | - | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
436 | 447 | | |
437 | 448 | | |
438 | 449 | | |
| |||
452 | 463 | | |
453 | 464 | | |
454 | 465 | | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
455 | 478 | | |
456 | 479 | | |
457 | 480 | | |
| |||
0 commit comments