guyinyou commented on a change in pull request #3208:
URL: https://github.com/apache/rocketmq/pull/3208#discussion_r681395125



##########
File path: 
client/src/main/java/org/apache/rocketmq/client/impl/producer/TopicPublishInfo.java
##########
@@ -29,6 +29,15 @@
     private List<MessageQueue> messageQueueList = new 
ArrayList<MessageQueue>();
     private volatile ThreadLocalIndex sendWhichQueue = new ThreadLocalIndex();
     private TopicRouteData topicRouteData;
+    private long notFoundFlag = -1;
+
+    public void setNotFoundFlag() {
+        if (!checkNotFoundFlag()) {
+            notFoundFlag = System.currentTimeMillis();
+        }
+    }
+
+    public boolean checkNotFoundFlag() { return System.currentTimeMillis() < 
notFoundFlag + 2000; }

Review comment:
       have done on the second commit




-- 
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]


Reply via email to