private boolean ensureDir(final File segmentsDir) {
        try {
            FileUtils.forceMkdir(segmentsDir);
            return true;
        } catch (final IOException e) {
            LOG.error("Fail to create segments directory: {}", this.segmentsPath, e);
            return false;
        }
    }
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