Skip to content

fix(sourcemaps): Log when Artifact Bundle URL lookup is canceled - #126689

Closed
sentry-junior[bot] wants to merge 1 commit into
masterfrom
fix/artifact-lookup-handle-query-canceled
Closed

sentry-junior[bot] wants to merge 1 commit into
masterfrom
fix/artifact-lookup-handle-query-canceled

Conversation

@sentry-junior

@sentry-junior sentry-junior Bot commented Oct 7, 2026 •

Copy link
Copy Markdown
Contributor

The url__icontains query in get_artifact_bundles_containing_url gets canceled for some orgs, where we lowered the statement timeout because these queries were putting extra load on the DB. Each cancellation currently becomes an OperationalError: canceling statement due to user request from the artifact-lookup endpoint (https://sentry.sentry.io/issues/7771182813/?project=1&query=is%3Aunresolved&referrer=issue-stream) which is quite spammy.

This changes that error to a log and returns the already obtained bundles instead of failing with a 500.

Fixes SENTRY-5X8S

via Lorenzo.

--

View Junior Session [Sentry]

…anceled

Co-Authored-By: Lorenzo Cian <17258265+lcian@users.noreply.github.com>
@github-actions github-actions Bot added the Scope: Backend Automatically applied to PRs that change backend components label Oct 7, 2026
@lcian lcian changed the title fix(sourcemaps): Log and degrade when artifact bundle URL lookup is canceled fix(sourcemaps): Log when Artifact Bundle URL lookup is canceled Oct 7, 2026
@lcian
lcian marked this pull request as ready for review October 7, 2026 10:15
@lcian
lcian requested a review from a team as a code owner October 7, 2026 10:15

@jjbayer jjbayer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

@lcian have you seen #126317?

@lcian

lcian commented Oct 7, 2026 •

Copy link
Copy Markdown
Member

Ah yes @jjbayer, I just wanted to stop the errors spam, but that PR should address them at the source. Perhaps the unhandled exception is preferable then, as after that change we would not expect this to occur so often.

@lcian lcian closed this Oct 9, 2026
@sentry-junior
sentry-junior Bot deleted the fix/artifact-lookup-handle-query-canceled branch October 9, 2026 12:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Scope: Backend Automatically applied to PRs that change backend components

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants