-
Notifications
You must be signed in to change notification settings - Fork 75
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
We were using `elog(ERROR, ...)` inside DuckDB worker threads, this appears to cause a crash when two or more threads run into an error in parallel. Another attempt was made to synchronize the `elog` calls, but even with that the crash was still present. I assume the elog(ERROR, ..) invalidates some internal state and does not expect to be called more than once. By throwing DuckDB exceptions, we instead throw the `elog(ERROR, ..)` from the main thread when `result->HasError()` is true, indicating that one or more worker threads stumbled upon an error.
- Loading branch information
Showing
4 changed files
with
61 additions
and
28 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters