Description
Tar segment compaction usually can't shrink the repository if there are many checkpoints. Checkpoints can be cleaned up, but maybe somebody forgets about this, or possibly checkpoints can accumulate due to a bug.
Before running compaction, the segment node store should check how many checkpoints there are, and if there is more than one, it should log a warning. That way one can more easily analyze problems related to compaction.
In addition to that, maybe compaction should simply not do anything (except for logging warnings) if there are more than 10 checkpoints.