thrownewRuntimeException(String.format("The broker name is not equal %s != %s ",entry.getKey(),entry.getValue().getTopicQueueMappingInfo().getBname()));
thrownewRuntimeException(String.format("The broker name is not equal %s != %s ",key,value.getMappingDetail().getBname()));
thrownewRuntimeException(String.format("epoch dose not match %d != %d in %s",maxEpochAndNum.getKey(),mappingDetail.getEpoch(),mappingDetail.getBname()));
thrownewRuntimeException(String.format("epoch dose not match %d != %d in %s",tmpMaxEpochAndNum.getKey(),mappingDetail.getEpoch(),mappingDetail.getBname()));
thrownewRuntimeException(String.format("total queue number dose not match %d != %d in %s",maxEpochAndNum.getValue(),mappingDetail.getTotalQueues(),mappingDetail.getBname()));
thrownewRuntimeException(String.format("total queue number dose not match %d != %d in %s",tmpMaxEpochAndNum.getValue(),mappingDetail.getTotalQueues(),mappingDetail.getBname()));
}
}
});
});
...
@@ -169,7 +176,6 @@ public class UpdateStaticTopicSubCommand implements SubCommand {
...
@@ -169,7 +176,6 @@ public class UpdateStaticTopicSubCommand implements SubCommand {
}
}
}
}
}
}
}
if(queueNum<globalIdMap.size()){
if(queueNum<globalIdMap.size()){
thrownewRuntimeException(String.format("Cannot decrease the queue num for static topic %d < %d",queueNum,globalIdMap.size()));
thrownewRuntimeException(String.format("Cannot decrease the queue num for static topic %d < %d",queueNum,globalIdMap.size()));
}
}
...
@@ -177,11 +183,47 @@ public class UpdateStaticTopicSubCommand implements SubCommand {
...
@@ -177,11 +183,47 @@ public class UpdateStaticTopicSubCommand implements SubCommand {
if(queueNum==globalIdMap.size()){
if(queueNum==globalIdMap.size()){
thrownewRuntimeException("The topic queue num is equal the existed queue num, do nothing");
thrownewRuntimeException("The topic queue num is equal the existed queue num, do nothing");