thrownewRuntimeException(String.format("The broker name is not equal %s != %s ",entry.getKey(),entry.getValue().getTopicQueueMappingInfo().getBname()));
thrownewRuntimeException(String.format("epoch dose not match %d != %d in %s %s",firstMapping.getEpoch(),nextMapping.getEpoch(),firstMapping.getBname(),nextMapping.getBname()));
thrownewRuntimeException(String.format("The broker name is not equal %s != %s ",entry.getKey(),entry.getValue().getTopicQueueMappingInfo().getBname()));
thrownewRuntimeException(String.format("epoch dose not match %d != %d in %s",maxEpochAndNum.getKey(),mappingDetail.getEpoch(),mappingDetail.getBname()));
thrownewRuntimeException(String.format("total queue number dose not match %d != %d in %s %s",firstMapping.getTotalQueues(),nextMapping.getTotalQueues(),firstMapping.getBname(),nextMapping.getBname()));
thrownewRuntimeException(String.format("total queue number dose not match %d != %d in %s",maxEpochAndNum.getValue(),mappingDetail.getTotalQueues(),mappingDetail.getBname()));
thrownewRuntimeException(String.format("The total queue number in config dose not match the real hosted queues %d != %d",maxEpochAndNum.getValue(),globalIdMap.size()));
thrownewRuntimeException(String.format("The total queue number in config dose not match the real hosted queues %d != %d",firstMapping.getTotalQueues(),globalIdMap.size()));
for(inti=0;i<maxEpochAndNum.getValue();i++){
if(!globalIdMap.containsKey(i)){
thrownewRuntimeException(String.format("The queue number %s is not in globalIdMap",i));