@Override
    void addSegment(LogSegment segment, boolean increaseUsedSegmentCount) {
      segmentsAdded++;
      if (segmentsAdded == addSegmentCallCountToInterruptAt) {
        throwExceptionIfRequired();
      }
      super.addSegment(segment, increaseUsedSegmentCount);
      if (segmentsAdded == addSegmentCallCountToInterruptAt) {
        closeCompactorOrThrowException();
      }
    }
Creates an instance of InterruptionInducingLog.
@param addSegmentCallCountToInterruptAt number of allowed calls to {@link #addSegment(LogSegment, boolean)}.
@param dropSegmentCallCountToInterruptAt number of allowed calls to {@link #dropSegment(LogSegmentName, boolean)}.
@throws StoreException
ambry-store/src/test/java/com/github/ambry/store/BlobStoreCompactorTest.java