nandakumar131 commented on issue #1303: HDDS-1903 : Use dynamic ports for SCM 
in TestSCMClientProtocolServer …
URL: https://github.com/apache/hadoop/pull/1303#issuecomment-522242889
 
 
   Thanks @avijayanhwx for working on this.
   
   It is better to specify the port as `0` in the test, which will allow SCM to 
choose a random port.
   
   In the current solution there is a gap between the port identification 
(inside test-case) and the binding of service to that port (when SCM 
initializes), because of this gap, sometimes the same port is given out 
multiple times by the OperatingSystem since the port is still free. We will 
again run into bind exceptions.

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to