private void startSegmentAllocator() throws IOException {
        // Warmup
        if (this.blankSegments.isEmpty()) {
            doAllocateSegment0();
        }
        // Start the thread.
        this.segmentAllocator = new Thread(this::doAllocateSegment);
        this.segmentAllocator.setDaemon(true);
        this.segmentAllocator.setName("SegmentAllocator");
        this.segmentAllocator.start();
    }
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