Commit 9385f39
Shut down executor threads after timeout to prevent JaCoCo EOFException
When executeMain times out, awaitTermination returns but worker threads
remain running (non-daemon). For remote DBs like Materialize, threads
blocked on network I/O prevent the JVM from exiting cleanly, causing
surefire to forcibly kill the process before JaCoCo can flush jacoco.exec,
resulting in an EOFException during report generation.
Calling shutdownNow() after the timeout interrupts threads (PostgreSQL
JDBC socket reads respond to Thread.interrupt()), allowing them to exit
and JaCoCo to write complete coverage data.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>1 parent 46813b5 commit 9385f39
1 file changed
+1
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
715 | 715 | | |
716 | 716 | | |
717 | 717 | | |
| 718 | + | |
718 | 719 | | |
719 | 720 | | |
720 | 721 | | |
| |||
0 commit comments