ni-ze commented on code in PR #6669:
URL: https://github.com/apache/rocketmq/pull/6669#discussion_r1190576713
##########
namesrv/src/main/java/org/apache/rocketmq/namesrv/routeinfo/RouteInfoManager.java:
##########
@@ -719,8 +719,8 @@ public TopicList getHasUnitSubUnUnitTopicList() {
private TopicList topicQueueTableIter(Predicate<QueueData> pickCondition) {
TopicList topicList = new TopicList();
try {
+ this.lock.readLock().lockInterruptibly();
Review Comment:
what the purpose of move code position?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]