Commit 7d86914
committed
(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.1 parent 9348675 commit 7d86914
File tree
3 files changed
+59
-14
lines changed- documentation
- src/puppetlabs/puppetdb/scf
- test/puppetlabs/puppetdb/cli
3 files changed
+59
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1689 | 1689 | | |
1690 | 1690 | | |
1691 | 1691 | | |
| 1692 | + | |
| 1693 | + | |
| 1694 | + | |
| 1695 | + | |
| 1696 | + | |
| 1697 | + | |
| 1698 | + | |
| 1699 | + | |
| 1700 | + | |
| 1701 | + | |
| 1702 | + | |
| 1703 | + | |
| 1704 | + | |
| 1705 | + | |
| 1706 | + | |
| 1707 | + | |
| 1708 | + | |
1692 | 1709 | | |
1693 | 1710 | | |
1694 | 1711 | | |
| |||
1774 | 1791 | | |
1775 | 1792 | | |
1776 | 1793 | | |
1777 | | - | |
| 1794 | + | |
1778 | 1795 | | |
1779 | 1796 | | |
1780 | 1797 | | |
| |||
1798 | 1815 | | |
1799 | 1816 | | |
1800 | 1817 | | |
1801 | | - | |
| 1818 | + | |
| 1819 | + | |
1802 | 1820 | | |
1803 | | - | |
| 1821 | + | |
1804 | 1822 | | |
1805 | 1823 | | |
1806 | 1824 | | |
| |||
1853 | 1871 | | |
1854 | 1872 | | |
1855 | 1873 | | |
1856 | | - | |
1857 | | - | |
1858 | | - | |
| 1874 | + | |
| 1875 | + | |
| 1876 | + | |
| 1877 | + | |
1859 | 1878 | | |
1860 | | - | |
1861 | | - | |
1862 | | - | |
| 1879 | + | |
| 1880 | + | |
| 1881 | + | |
| 1882 | + | |
1863 | 1883 | | |
1864 | 1884 | | |
1865 | 1885 | | |
| |||
1869 | 1889 | | |
1870 | 1890 | | |
1871 | 1891 | | |
1872 | | - | |
| 1892 | + | |
1873 | 1893 | | |
1874 | | - | |
| 1894 | + | |
1875 | 1895 | | |
1876 | 1896 | | |
1877 | 1897 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
584 | 584 | | |
585 | 585 | | |
586 | 586 | | |
587 | | - | |
| 587 | + | |
588 | 588 | | |
589 | 589 | | |
590 | 590 | | |
| |||
610 | 610 | | |
611 | 611 | | |
612 | 612 | | |
613 | | - | |
| 613 | + | |
614 | 614 | | |
615 | 615 | | |
616 | 616 | | |
| |||
656 | 656 | | |
657 | 657 | | |
658 | 658 | | |
659 | | - | |
| 659 | + | |
| 660 | + | |
| 661 | + | |
| 662 | + | |
| 663 | + | |
| 664 | + | |
| 665 | + | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
| 679 | + | |
| 680 | + | |
0 commit comments