public void resetMemStoreStatus(long writeDataStartPos, long writeIndexStartPos) {
        this.keysMap.clear();
        this.queuesMap.clear();
        this.cacheDataOffset.set(0);
        this.cacheIndexOffset.set(0);
        this.curMessageCount.set(0);
        this.cacheDataSegment.rewind();
        this.cachedIndexSegment.rewind();
        this.writeDataStartPos = writeDataStartPos;
        this.writeIndexStartPos = writeIndexStartPos;
        this.leftAppendTime.set(System.currentTimeMillis());
        this.rightAppendTime.set(System.currentTimeMillis());
    }
Reset the memory store status values.

@param writeDataStartPos     the data start position
@param writeIndexStartPos    the data start position
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/broker/msgstore/mem/MsgMemStore.java