private void getUnbalanceGroupInfo(StringBuilder sBuilder) {
        ConsumerInfoHolder consumerHolder = master.getConsumerHolder();
        BrokerRunManager brokerRunManager = master.getBrokerRunManager();
        Map<String, Map<String, Map<String, Partition>>> currentSubInfoMap =
                master.getCurrentSubInfoMap();
        int currPartSize = 0;
        Set<String> topicSet;
        List<Partition> partList;
        List<String> consumerIdList;
        Map<String, Partition> topicSubInfoMap;
        Map<String, Map<String, Partition>> consumerSubInfoMap;
        List<String> groupList = consumerHolder.getAllServerBalanceGroups();
        for (String group : groupList) {
            if (group == null) {
                continue;
            }
            topicSet = consumerHolder.getGroupTopicSet(group);
            for (String topic : topicSet) {
                if (topic == null) {
                    continue;
                }
                currPartSize = 0;
                consumerIdList = consumerHolder.getConsumerIdList(group);
                if (CollectionUtils.isNotEmpty(consumerIdList)) {
                    for (String consumerId : consumerIdList) {
                        if (consumerId == null) {
                            continue;
                        }
                        consumerSubInfoMap = currentSubInfoMap.get(consumerId);
                        if (consumerSubInfoMap != null) {
                            topicSubInfoMap = consumerSubInfoMap.get(topic);
                            if (topicSubInfoMap != null) {
                                currPartSize += topicSubInfoMap.size();
                            }
                        }
                    }
                }
                partList = brokerRunManager.getSubBrokerAcceptSubParts(topic);
                if (currPartSize != partList.size()) {
                    sBuilder.append(group).append(":").append(topic).append("\n");
                }
            }
        }
    }
Get un-balanced group info

@param sBuilder
@return
inlong-tubemq/tubemq-server/src/main/java/org/apache/inlong/tubemq/server/master/web/action/screen/Master.java