-
Notifications
You must be signed in to change notification settings - Fork 492
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix deadlock in drop_subscriptions_before_start (#10806)
ALTER SUBSCRIPTION requires AccessExclusive lock which conflicts with iteration over pg_subscription when multiple databases are present and operations are applied concurrently. Fix by explicitly locking pg_subscription in the beginning of the transaction in each database. ## Problem neondatabase/cloud#24292
- Loading branch information
1 parent
07bee60
commit 7c7180a
Showing
4 changed files
with
220 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7c7180a
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.
7031 tests run: 6657 passed, 1 failed, 373 skipped (full report)
Failures on Postgres 16
test_branch_creation_many[github-actions-selfhosted-random-1024]
: release-x86-64-with-lfcFlaky tests (3)
Postgres 17
test_branching_with_pgbench[flat-1-10]
: debug-x86-64-without-lfctest_wal_backup
: debug-x86-64-without-lfcPostgres 15
test_change_pageserver
: release-arm64-with-lfcCode coverage* (full report)
functions
:32.9% (8618 of 26199 functions)
lines
:48.8% (72741 of 148933 lines)
* collected from Rust tests only
7c7180a at 2025-02-20T19:50:24.640Z :recycle: