-
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) Clean up stranded partitions
If a partition is fully detached, but fails to be dropped during its GC operation, subsequent GC operations will not see that partition at all. It will be stranded and PuppetDB will never remove it. During GC, search for stranded partitions that need to be removed and add them to the list of partitions that need to be dropped. There is no structural way to tell the difference between a non-partitioned table and a detached partition table. This PR uses a regular expression, which means that PuppetDB cannot have any non-partitioned tables matching the regular expressions used to identify stranded partitions.
- Loading branch information
Showing
3 changed files
with
57 additions
and
14 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