private void processHeartBeatSyncInfo(ClientMaster.HeartResponseM2P response,
            StringBuilder strBuff) {
        if (response.hasRequireAuth()) {
            nextWithAuthInfo2M.set(response.getRequireAuth());
        }
        if (response.hasAppdConfig()) {
            msgSizeHolder.updAllowedSetting(response.getAppdConfig());
        }
        if (response.hasAuthorizedInfo()) {
            processAuthorizedToken(response.getAuthorizedInfo());
        }
        if (response.getErrCode() == TErrCodeConstants.NOT_READY) {
            lastHeartbeatTime = System.currentTimeMillis();
            return;
        }
        if (response.getBrokerCheckSum() != brokerInfoCheckSum) {
            updateBrokerInfoList(false, response.getBrokerInfosList(),
                    response.getBrokerCheckSum(), strBuff);
        }
        if (response.getTopicInfosList().isEmpty()
                && System.currentTimeMillis() - lastEmptyTopicPrintTime > 60000) {
            logger.warn("[Heartbeat Update] found empty topicList update!");
            lastEmptyTopicPrintTime = System.currentTimeMillis();
        }
        updateTopicConfigure(DataConverterUtil
                .convertTopicInfo(brokersMap, response.getTopicInfosList()));
    }
Get partitions of the given topic.

@param topic topic name
@return partition map
inlong-tubemq/tubemq-client/src/main/java/org/apache/inlong/tubemq/client/producer/ProducerManager.java