private static long getFileSequenceFromFileName(final File file) {
        final String name = file.getName();
        assert (name.endsWith(SEGMENT_FILE_POSFIX));
        int idx = name.indexOf(SEGMENT_FILE_POSFIX);
        return Long.valueOf(name.substring(0, idx));
    }
It's wrote position is from start(HEADER_SIZE) but it's not the last file, SHOULD not happen.
jraft-core/src/main/java/com/alipay/sofa/jraft/storage/log/RocksDBSegmentLogStorage.java