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: Emit a warning message rather than an exception on query failure #9811
fix: Emit a warning message rather than an exception on query failure #9811
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
cc @etr2460 for context. |
An issue I see with this is the potential swallowing of useful information. Does it make sense to set |
I think with
|
No strong opinions here one way or another, I can see both sides of the argument. I lean slightly on the side of agreeing with Will as these exceptions are generally going to be coming from the db engine and aren't really something we can resolve on the Superset side |
I think Craig's suggestion is the correct balance. I'll set |
Codecov Report
@@ Coverage Diff @@
## master #9811 +/- ##
==========================================
+ Coverage 64.31% 71.02% +6.71%
==========================================
Files 536 583 +47
Lines 29109 30615 +1506
Branches 2806 3162 +356
==========================================
+ Hits 18721 21745 +3024
+ Misses 10208 8758 -1450
+ Partials 180 112 -68
Continue to review full report at Codecov.
|
…apache#9811) * Emit a warning message rather than an exception on query failure * Add exc_info=True to warning message
SUMMARY
Exception messages are frequently bubbled up to error aggregators like Sentry, Airbrake, and the like from web applications. As queries can fail for a wide variety of reasons, most of which are beyond the ability of Superset to catch and fix before execution, I'd like to downgrade the messaging around analytical query failures to the warning level. This will keep the events in log streams but largely remove them from error aggregators.
BEFORE/AFTER SCREENSHOTS OR ANIMATED GIF
TEST PLAN
ADDITIONAL INFORMATION
Reviewers
@craig-rueda @rusackas @john-bodley