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
145895: backup: enforce a minimum compaction window size of 3 r=msbutler a=kev-cao
Previously, the minimum compaction window size was set to 2. With a compaction window of 2, if a chain is at length `n` prior to a backup that triggers a compaction, the length of the chain after compaction is also `n`. Under these conditions, if compactions fail/are blocked for any reason and the length of the chain exceeds the threshold set by `backup.compaction.threshold`, the chain will never recover and drop below the threshold.
This patch enforces that the minimum compaction window size is at least 3. That way, if the length of the chain exceeds the threshold, each successful compaction afterwards will always bring the chain closer to the threshold. This allows compactions to self-correct the chain to be under the threshold.
Epic: None
Release note: `backup.compaction.window_size` must be at least 3 instead of 2.
Co-authored-by: Kevin Cao <[email protected]>
0 commit comments