boolean isEmpty() {
    return startOffset == endOffset.get();
  }
@return {@code true} if the startOffset and endOffset of this log segment is the same. Otherwise return {@code false}.
ambry-store/src/main/java/com/github/ambry/store/LogSegment.java