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

[Bug] Threading model prevents exceptions in threads from reaching logging in a meaningful way #4476

Closed
1 task done
iknox-fa opened this issue Dec 13, 2021 · 2 comments
Closed
1 task done
Labels
bug Something isn't working tech_debt Behind-the-scenes changes, with little direct impact on end-user functionality

Comments

@iknox-fa
Copy link
Contributor

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

During the course of resolving #4424 it was discovered that exceptions caused within threads during runtime don't surface to the user in a meaningful way. My current understanding is that is due to the threading model we currently use, although this needs further verification.

Expected Behavior

Exceptions are visible to the user

Steps To Reproduce

Revert changes made in #4424
Run the test suite with json output enabled

Relevant log output

No response

Environment

- OS:
- Python:
- dbt:

What database are you using dbt with?

No response

Additional Context

No response

@iknox-fa iknox-fa added bug Something isn't working triage labels Dec 13, 2021
@jtcohen6 jtcohen6 added Team: Execution tech_debt Behind-the-scenes changes, with little direct impact on end-user functionality and removed triage labels Dec 14, 2021
@jtcohen6
Copy link
Contributor

@iknox-fa Is this the same as the issue described in #4357? Let's close one and keep one open, whichever has the most useful + up-to-date info.

My sense is that this is only relevant for internal-to-dbt exceptions (e.g. failure to serialize logs to JSON). Any database errors that threaded execution encounters, even unhandled ones, are bubbled up appropriately.

@iknox-fa
Copy link
Contributor Author

@jtcohen6 Yep same thing, sorry I missed it in the search step. Closing this one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working tech_debt Behind-the-scenes changes, with little direct impact on end-user functionality
Projects
None yet
Development

No branches or pull requests

2 participants