You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@geode.apache.org by GitBox <gi...@apache.org> on 2021/10/18 16:13:46 UTC

[GitHub] [geode] demery-pivotal commented on pull request #7011: GEODE-9604: Use AvailablePortHelper in MSetDUnitTest

demery-pivotal commented on pull request #7011:
URL: https://github.com/apache/geode/pull/7011#issuecomment-945937418


   Here's the cause:
   1. Start a member using port 0, which binds any available port from the ephemeral port range.
   2. Stop the member, which releases the port.
   3. Some other process on the machine binds to port 0, and the system randomly selects the port that the member just released.
   3. Start the member on its original port, which fails because another process has bound to it.
   
   It is risky to assume that a port allocated from the ephemeral port range remains free after it is released, as this test was doing. It is even more risky to make that assumption in CI, where dozens of other processes may be using the same port namespace.


-- 
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: notifications-unsubscribe@geode.apache.org

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