thrownewRuntimeException("The topic name is inconsistent in broker "+broker);
}
if(topic!=null
&&!topic.equals(mappingDetail.getTopic())){
thrownewRuntimeException("The topic name is inconsistent in broker "+broker);
}else{
topic=mappingDetail.getTopic();
}
if(maxEpoch!=-1
&&maxEpoch!=mappingDetail.getEpoch()){
thrownewRuntimeException(String.format("epoch dose not match %d != %d in %s",maxEpoch,mappingDetail.getEpoch(),mappingDetail.getBname()));
}else{
maxEpoch=mappingDetail.getEpoch();
}
if(maxNum!=-1
&&maxNum!=mappingDetail.getTotalQueues()){
thrownewRuntimeException(String.format("total queue number dose not match %d != %d in %s",maxNum,mappingDetail.getTotalQueues(),mappingDetail.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",maxEpochAndNum.getValue(),mappingDetail.getTotalQueues(),mappingDetail.getBname()));