@Test
  public void compactWholeLogWithHardDeleteEnabledTest() throws Exception {
    // no interruptions
    doCompactWholeLogWithHardDeleteEnabledTest(false, false);
    // close in the middle of copying
    doCompactWholeLogWithHardDeleteEnabledTest(true, true);
    // crash in the middle of copying
    throwExceptionInsteadOfClose = true;
    doCompactWholeLogWithHardDeleteEnabledTest(true, true);
    // crash in the middle of commit
    doCompactWholeLogWithHardDeleteEnabledTest(true, false);
  }
Compacts the whole log (except the last log segment) and a changed size is expected i.e. there is some invalid
data. All this is done with hard delete enabled (compactor is expected to pause it).
@throws Exception
ambry-store/src/test/java/com/github/ambry/store/BlobStoreCompactorTest.java