@Test
  public void interruptionDuringOrAfterIndexSegmentProcessingTest() throws Exception {
    // close testing
    doInterruptionDuringOrAfterIndexSegmentProcessingTest();
    // crash testing
    // crash after executing operation
    throwExceptionInsteadOfClose = true;
    throwExceptionBeforeOperation = false;
    doInterruptionDuringOrAfterIndexSegmentProcessingTest();
    // crash before executing operation
    throwExceptionBeforeOperation = true;
    doInterruptionDuringOrAfterIndexSegmentProcessingTest();
  }
Tests the case where there is an interruption (crash/close) of compaction during copy after a few index segments
have been processed.
@throws Exception
ambry-store/src/test/java/com/github/ambry/store/BlobStoreCompactorTest.java