public void renameTo(File f) throws IOException {
        try {
            Utils.atomicMoveWithFallback(file.toPath(), f.toPath(), false);
        } finally {
            this.file = f;
        }
    }
Rename the file that backs this message set
@throws IOException if rename fails.
clients/src/main/java/org/apache/kafka/common/record/FileRecords.java