-
Notifications
You must be signed in to change notification settings - Fork 226
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
(GH-4013) Handle finalizing partition detach in GC
The process of detaching a partition is a two transaction process. When the first transaction succeeds, the partition is now "pending". The second transaction needs an ACCESS EXCLUSIVE lock on the partition and can therefore sometimes fail. When this happens, subsequent GCs will fail because only one pending partition detachment is allowed. To handle this, catch the SQLException and finalize the pending detach operation. If that was a different partition from the partition we are trying to remove, retry the detach operation that failed.
- Loading branch information
Showing
4 changed files
with
89 additions
and
5 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