public boolean hasSuffix(String suffix) {
        return log.file().getName().endsWith(suffix) &&
            offsetIndexFile().getName().endsWith(suffix) &&
            timeIndexFile().getName().endsWith(suffix) &&
            txnIndex.file().getName().endsWith(suffix);
    }
Change the suffix for the index and log files for this log segment
IOException from this method should be handled by the caller
storage/src/main/java/org/apache/kafka/storage/internals/log/LogSegment.java