private void closeCompactorOrThrowException() {
    closeOrExceptionInduced = true;
    if (throwExceptionInsteadOfClose) {
      throw new RuntimeException(EXCEPTION_MSG);
    }
    try {
      compactor.close(0);
    } catch (InterruptedException e) {
      throw new IllegalStateException(e);
    }
  }
Interrupts the compactor.
1. Throws an exception if {@link #throwExceptionInsteadOfClose} is {@code true}.
2. Closes the compactor otherwise.
ambry-store/src/test/java/com/github/ambry/store/BlobStoreCompactorTest.java