Skip to content

fix(aci): Reduce deadlock risk in ActionGroupStatus updates #92451

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
May 28, 2025

Conversation

kcons
Copy link
Member

@kcons kcons commented May 28, 2025

Order ActionGroupStatus updates to ensure consistent row locking order across concurrent executions, potentially avoiding deadlocks.
Also limit updates to where date_updated is actually newer, which could theoretically reduce overlap between concurrent update queries.

See SENTRY-3WEA.

@kcons kcons requested a review from a team as a code owner May 28, 2025 22:59
@github-actions github-actions bot added the Scope: Backend Automatically applied to PRs that change backend components label May 28, 2025
@kcons kcons merged commit f5dce95 into master May 28, 2025
62 checks passed
@kcons kcons deleted the kcons/lessrisk branch May 28, 2025 23:59
@kcons kcons added Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests Trigger: Revert Add to a merged PR to revert it (skips CI) labels May 29, 2025
@getsentry-bot
Copy link
Contributor

PR reverted: bcf6cbc

getsentry-bot added a commit that referenced this pull request May 29, 2025
andrewshie-sentry pushed a commit that referenced this pull request Jun 2, 2025
Order ActionGroupStatus updates to ensure consistent row locking order
across concurrent executions, potentially avoiding deadlocks.
Also limit updates to where date_updated is actually newer, which could
theoretically reduce overlap between concurrent update queries.

See SENTRY-3WEA.
andrewshie-sentry pushed a commit that referenced this pull request Jun 2, 2025
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 Trigger: getsentry tests Once code is reviewed: apply label to PR to trigger getsentry tests Trigger: Revert Add to a merged PR to revert it (skips CI)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants