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



##########
File path: 
pulsar-functions/localrun/src/main/java/org/apache/pulsar/functions/LocalRunner.java
##########
@@ -569,15 +582,20 @@ private void 
startThreadedMode(org.apache.pulsar.functions.proto.Function.Functi
             instanceConfig.setFunctionId(UUID.randomUUID().toString());
             instanceConfig.setInstanceId(i + instanceIdOffset);
             instanceConfig.setMaxBufferedTuples(1024);
-            instanceConfig.setPort(FunctionCommon.findAvailablePort());

Review comment:
       There is no point in setting any of these ports.  They are not used when 
running in threaded mode for local run




-- 
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:
[email protected]


Reply via email to