Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Don't silence blocking task errors #91

Merged
merged 3 commits into from
Sep 10, 2024

Conversation

peasee
Copy link
Collaborator

@peasee peasee commented Sep 10, 2024

🗣 Description

  • Ensures that errors from within blocking tasks don't get silenced, as the return type from JoinHandle is Result<T, JoinError>. If the inner blocking tasks return a Result<> themselves, we need to ensure we match for Ok(Err(e) to get the inner error, or Err(e) to get the JoinError.

@peasee peasee added the bug Something isn't working label Sep 10, 2024
@peasee peasee self-assigned this Sep 10, 2024
src/duckdb/write.rs Outdated Show resolved Hide resolved
src/duckdb/write.rs Outdated Show resolved Hide resolved
@phillipleblanc phillipleblanc merged commit acf18cb into spiceai Sep 10, 2024
3 checks passed
@phillipleblanc phillipleblanc deleted the fix/dont-silence-blocking-task-errors branch September 10, 2024 02:08
hozan23 pushed a commit to hozan23/datafusion-table-providers that referenced this pull request Sep 19, 2024
* fix: Don't silence blocking task errors

* fix: Cover Ok(Err()) match arm for DuckDB writer handle

* refactor: Rename overloaded error e
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants