You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
ScanAndCompareGarbageCollector.gc: harden against LedgerManager bugs #870
There is special logic in gc() for handling the case where ledgerRangeIterator.hasNext() returns false immediately (the case where the LedgerManager is empty). The logic immediately deletes all of the indices which were present prior to the iterator call. Strictly speaking, this is correct, but segregating the handling of this case from the handling of (for instance) the case where there is 1 ledger means that we unnecessarily duplicate the removal logic and, in this case, skip the part where we double check that the metadata really is absent. Refactor this method to use the same logic in both cases.
More generally, add a config to force the bookie to use both the iterator and the readLedgerMetadata paths to prove a ledger is really dead.
changed the title [-]ScanAndCompareGarbageCollector.gc: do not short-circuit the second metadata check[/-][+]ScanAndCompareGarbageCollector.gc: harden against LedgerManager bugs[/+]on Dec 16, 2017
Activity
[-]ScanAndCompareGarbageCollector.gc: do not short-circuit the second metadata check[/-][+]ScanAndCompareGarbageCollector.gc: harden against LedgerManager bugs[/+]ISSUE apache#870: ScanAndCompareGarbageCollector: harden against LM bugs
ISSUE apache#870: ScanAndCompareGarbageCollector: harden against LM bugs
ISSUE apache#870: ScanAndCompareGarbageCollector: harden against LM bugs
ISSUE apache#870: ScanAndCompareGarbageCollector: harden against LM bugs
ISSUE apache#870: ScanAndCompareGarbageCollector: harden against LM bugs
ISSUE #870: ScanAndCompareGarbageCollector: harden against LM bugs
ISSUE apache#870: ScanAndCompareGarbageCollector: harden against LM bugs
ISSUE apache#870: ScanAndCompareGarbageCollector: harden against LM bugs
Merge pull request #22 from revans2/ISSUE-870-HARDENING
[BK-SERVER] Clean up over-replicated ledgers owned by different bookies