paul8263 commented on pull request #18334:
URL: https://github.com/apache/flink/pull/18334#issuecomment-1012787097


   Hi @zentol ,
   
   Thank you very much for your reply. I have tested Netty ServerBootstrap and 
it turns out that if we bind 0 as the port number, the server will finally 
choose a random unallocated port. I agree with you that for Netty related test 
the file lock could be simplified to assign a port 0 to the NettyServer, as the 
file lock implementation is more cumbersome.
   
   I think we may need to discuss whether it makes sense if we keep using the 
uniform logic by calling NetUtils#.getAvailablePort. 


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