(#2655) - test and fix auto_compaction