@Override
    protected TimestampOffset parseEntry(ByteBuffer buffer, int n) {
        if (buffer != null) {
            throw new IllegalStateException("expect empty mmap");
        }
        return parseEntry(n);
    }
In the case of unclean shutdown, the last entry needs to be recovered from the time index.
core/src/main/scala/kafka/log/streamaspect/ElasticTimeIndex.java