You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2020/07/13 21:32:37 UTC

[GitHub] [pulsar] jerrypeng commented on a change in pull request #7526: Speedup leader initialization

jerrypeng commented on a change in pull request #7526:
URL: https://github.com/apache/pulsar/pull/7526#discussion_r453945790



##########
File path: pulsar-functions/worker/src/main/java/org/apache/pulsar/functions/worker/FunctionMetaDataTopicTailer.java
##########
@@ -75,12 +75,10 @@ public void run() {
                 }
             }
             try {
-                Message<byte[]> msg = reader.readNext(5, TimeUnit.SECONDS);
-                if (msg != null) {
-                    this.functionMetaDataManager.processMetaDataTopicMessage(msg);
-                }
+                Message<byte[]> msg = reader.readNext();
+                this.functionMetaDataManager.processMetaDataTopicMessage(msg);

Review comment:
       I don't think we should interrupt if  in .processMetaDataTopicMessage(msg);  We should allow that to finish.  If we don't, the functionMetadataManager might be corrupted




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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org