private boolean shouldSetActiveLogSegmentToAutoClosedSegment() {
    return log.getLastSegment().isEmpty() && getCurrentEndOffset().compareTo(log.getEndOffset()) < 0;
  }
If index recovery succeed and last log segment is empty due to auto close segment feature, the last log segment
should be set as active log segment.
@return {@code true} if the recovery succeed and last log segment is empty.
ambry-store/src/main/java/com/github/ambry/store/PersistentIndex.java