public AbstractFile getFirstFile() {
        if (!this.files.isEmpty()) {
            return this.files.get(0);
        }
        return null;
    }
Flush from flushPosition
@return true if flush success
jraft-extension/java-log-storage-impl/src/main/java/com/alipay/sofa/jraft/storage/file/FileManager.java