public LogSegment activeSegment() {
        return lastSegment().get();
    }
The active segment that is currently taking appends
storage/src/main/java/org/apache/kafka/storage/internals/log/LogSegments.java