returnbuildErrorResponse(ResponseCode.NOT_LEADER_FOR_QUEUE,String.format("%s-%d does not exit in request process of current broker %s",mappingContext.getTopic(),mappingContext.getGlobalId(),mappingDetail.getBname()));
}
//TODO should make sure the timestampOfOffset is equal or bigger than the searched timestamp
...
...
@@ -702,14 +699,10 @@ public class AdminBrokerProcessor extends AsyncNettyRequestProcessor implements
returnbuildErrorResponse(ResponseCode.NOT_LEADER_FOR_QUEUE,String.format("%s-%d does not exit in request process of current broker %s",mappingContext.getTopic(),mappingContext.getGlobalId(),mappingDetail.getBname()));
returnbuildErrorResponse(ResponseCode.NOT_LEADER_FOR_QUEUE,String.format("%s-%d does not exit in request process of current broker %s",mappingContext.getTopic(),mappingContext.getGlobalId(),mappingDetail.getBname()));
returnbuildErrorResponse(ResponseCode.NOT_LEADER_FOR_QUEUE,String.format("%s-%d does not exit in request process of current broker %s",mappingContext.getTopic(),mappingContext.getGlobalId(),mappingDetail.getBname()));
// if the leader? consider the order consumer, which will lock the mq
if(!mappingContext.isLeader()){
returnbuildErrorResponse(ResponseCode.NOT_LEADER_FOR_QUEUE,String.format("%s-%d cannot find mapping item in request process of current broker %s",topic,globalId,mappingDetail.getBname()));
}
LongglobalOffset=requestHeader.getQueueOffset();
//TODO Check if the leader? consider the order consumer, which will lock the mq
returnbuildErrorResponse(ResponseCode.NOT_LEADER_FOR_QUEUE,String.format("%s-%d does not exit in request process of current broker %s",mappingContext.getTopic(),mappingContext.getGlobalId(),mappingDetail.getBname()));
returnbuildErrorResponse(ResponseCode.NOT_LEADER_FOR_QUEUE,String.format("%s-%d does not exit in request process of current broker %s",requestHeader.getTopic(),requestHeader.getQueueId(),mappingDetail.getBname()));