private int calculateConfigCrc32Value(String brokerConfInfo,
            Map<String, String> topicConfInfoMap) {
        int result = -1;
        int capacity = 0;
        List<String> topicConfInfoLst =
                new ArrayList<>(topicConfInfoMap.values());
        Collections.sort(topicConfInfoLst);
        capacity += brokerConfInfo.length();
        for (String itemStr : topicConfInfoLst) {
            capacity += itemStr.length();
        }
        capacity *= 2;
        for (int i = 1; i < 3; i++) {
            result = inCalcBufferResult(capacity, brokerConfInfo, topicConfInfoLst);
            if (result >= 0) {
                return result;
            }
            capacity *= i + 1;
        }
        logger.error("Calculate the CRC32 value of Broker Configure error!");
        return 0;
    }
Calculate the sync-data's crc32 value

@param brokerConfInfo  broker default config
@param topicConfInfoMap topic config set

@return the crc32 value
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/master/nodemanage/nodebroker/BrokerSyncData.java