private int getIndex() {
        return getIndex(writableIndex.get());
    }
Get current writable block index.

@return the writable block index
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/broker/stats/MsgStoreStatsHolder.java