Skip to content

fix(coderd/batchstats): use debug log on query cancellation in flush #9778

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

Merged
merged 1 commit into from
Sep 19, 2023

Conversation

mafredri
Copy link
Member

The previous PR #9777, only fixed part of the issues reported in #9772. We now handle canceled queries as well.

Fixes #9772

@mafredri mafredri self-assigned this Sep 19, 2023
Copy link
Member

@johnstcn johnstcn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I keep forgetting all of these neat helpers exist 👍

@mafredri
Copy link
Member Author

I keep forgetting all of these neat helpers exist 👍

Me too! This particular helper needs a lint TBH, if you're doing a query and only checking context cancellation, that's not enough as long as we use lib/pq 😔.

I think this particular helper may require updates though. There are other forms of query cancellation (like conflict with recovery, etc). I'm not sure whether or not these have the same error code.

@mafredri mafredri merged commit 161a3cf into main Sep 19, 2023
@mafredri mafredri deleted the mafredri/fix-batchstats-error-log-2 branch September 19, 2023 15:16
@github-actions github-actions bot locked and limited conversation to collaborators Sep 19, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

test flake: TestTemplateInsights_Golden/multiple_users_and_workspaces
2 participants