You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a backport of the PR duckdb#505 to `v1.4-andium` stable branch.
The implementation of `Statement#setQueryTimeout()` added in duckdb#247 uses a
background thread to perform the query cancellation on timeout. Because
that thread is not marked as "daemon" one, it can prevent JVM shutdown.
This change makes the scheduler thread "daemon" and additionally exposes
`DuckDBDriver#shutdownQueryCancelScheduler()` method that allows to shut
down the scheduler manually.
Testing: manual test added that checks that queries with timeout set
can be executed (with timeout ineffective) after the scheduler is shut down.
Fixes: duckdb#504
0 commit comments