private void updateBrokerInfoList(boolean isRegister, List<String> pkgBrokerInfos,
            long pkgCheckSum, StringBuilder sBuilder) {
        if (pkgCheckSum != brokerInfoCheckSum) {
            if (pkgBrokerInfos != null) {
                brokersMap = DataConverterUtil.convertBrokerInfo(
                        pkgBrokerInfos, tubeClientConfig.isTlsEnable());
                brokerInfoCheckSum = pkgCheckSum;
                lastBrokerUpdatedTime = System.currentTimeMillis();
                if (pkgBrokerInfos.isEmpty()) {
                    if (System.currentTimeMillis() - lastEmptyBrokerPrintTime > 60000) {
                        if (isRegister) {
                            logger.warn(sBuilder
                                    .append("[Register Update] Found empty brokerList, changed checksum is ")
                                    .append(brokerInfoCheckSum).toString());
                        } else {
                            logger.warn(sBuilder
                                    .append("[Heartbeat Update] Found empty brokerList, changed checksum is ")
                                    .append(brokerInfoCheckSum).toString());
                        }
                        sBuilder.delete(0, sBuilder.length());
                        lastEmptyBrokerPrintTime = System.currentTimeMillis();
                    }
                } else {
                    if (!isRegister) {
                        logger.info(sBuilder
                                .append("[Heartbeat Update] Found brokerList changed checksum is ")
                                .append(brokerInfoCheckSum).toString());
                        sBuilder.delete(0, sBuilder.length());
                    }
                }
            }
        }
    }
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