-
Notifications
You must be signed in to change notification settings - Fork 21
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
IntegrityError: (raised as a result of Query-invoked autoflush; consider using a session.no_autoflush block if th... #775
Comments
@jasonthomas So I'm not sure how to reproduce this locally and need your help digging into the prod logs. All the tracebacks in Sentry pass through the code that runs the queries and fails when storing the result of the query run. Sadly I don't see the stack variables of individual stack frames in Sentry so we'll need to find the logging line just after it ran the query and before it stores the result. Assuming we can grep the logs (can we?) searching for E.g. |
I've communicated the related logs via IRC pm. |
FTR https://discuss.redash.io/t/athena-querry-not-working/1662 describes this as well, making this an actual query issue |
The fact the the query runner doesn't handle query errors like this is a bad thing though |
And previously reported a while ago here: https://bugzilla.mozilla.org/show_bug.cgi?id=1314621 |
And of course there is @fbertsch's getredash#1753 that adds handling InterruptException (as in our traceback) to the Presto query runner |
So I suggest to actually add the additional exception handling to the Athena query runner as well, @washort @jasonthomas @emtwo Anyone a different idea? |
I'm surprised it doesn't already have this handling. Adding it makes sense to me. |
I've opened getredash#3403. |
This has been merged upstream and deployed in the recent deploy. |
@mreid messaged me about his queries missing results after execution. I noticed under https://sql.telemetry.mozilla.org/admin/queries/tasks > Queries queue > In Progress that there are several tasks that are in the 'saving_results' state for several hours. It looks like this traceback is related to this.
https://sentry.prod.mozaws.net/operations/data-stmo-prod/issues/5058836/
The text was updated successfully, but these errors were encountered: