private long getSumOfLogSegmentEndOffsets() {
    long sum = 0;
    LogSegment segment = state.log.getFirstSegment();
    while (segment != null) {
      sum += segment.getEndOffset();
      segment = state.log.getNextSegment(segment);
    }
    return sum;
  }
@return the sum of all the end offsets of all the log segments.
ambry-store/src/test/java/com/github/ambry/store/BlobStoreCompactorTest.java