private List<LogSegmentName> getSegmentNames(Log log) {
    List<LogSegmentName> names = new ArrayList<>();
    LogSegment segment = log.getFirstSegment();
    while (segment != null) {
      names.add(segment.getName());
      segment = log.getNextSegment(segment);
    }
    return names;
  }
@param log the log whose segment names are required.
@return list of the names of all the segments in {@code log}
ambry-tools/src/main/java/com/github/ambry/store/CompactionVerifier.java