public Collection<LogSegment> nonActiveLogSegmentsFrom(long from) {
        LogSegment activeSegment = lastSegment().get();
        if (from > activeSegment.baseOffset())
            return Collections.emptyList();
        else
            return values(from, activeSegment.baseOffset());
    }
@return An iterator to all segments beginning with the segment that includes "from" and ending
        with the segment that includes up to "to-1" or the end of the log (if to > end of log).
storage/src/main/java/org/apache/kafka/storage/internals/log/LogSegments.java