void close(boolean skipDiskFlush) throws IOException {
    for (LogSegment segment : segmentsByName.values()) {
      segment.close(skipDiskFlush);
    }
  }
Closes the Log and all its segments.
@param skipDiskFlush whether to skip any disk flush operations.
@throws IOException if the flush encountered an I/O error.
ambry-store/src/main/java/com/github/ambry/store/Log.java