private void throwExceptionIfRequired() {
    if (throwExceptionBeforeOperation) {
      closeOrExceptionInduced = true;
      throw new RuntimeException(EXCEPTION_MSG);
    }
  }
Throws an exception if {@link #throwExceptionBeforeOperation} is {@code true}.
ambry-store/src/test/java/com/github/ambry/store/BlobStoreCompactorTest.java