sabi0 commented on issue #12964:
URL: https://github.com/apache/lucene/issues/12964#issuecomment-1868288499

   Indeed, my machine has this:
   ```
   Protocol tcp Dynamic Port Range
   ---------------------------------
   Start Port      : 1024
   Number of Ports : 20977
   ```
   I do not know why this was changed by our corp. IT. I guess they had a 
reason to.
   
   I agree that OpenJDK not reading the OS settings is the root cause. But 
suggesting everyone to "fix their Windows" or wait for some Java 27 to fix this 
or otherwise run the tests with the SecurityManager completely off is 
unnecessarily rigid IMO.
   
   I believe this is the perfect fit for the 
[AssumptionViolatedException](https://junit.org/junit4/javadoc/4.12/org/junit/AssumptionViolatedException.html).
   The test assumes the ports are allocated within JDK's ephemeral port range. 
Now we know for a fact that this might not be the case on Windows. And that's 
the assumption violation, not the test failure.
   I can open a PR for that if you want. Otherwise I suggest us all to move on.
   
   P.S. Another similar case I ran into recently: creating a symlink on Windows 
with UAC requires elevated permissions causing [Elasticsearch test to 
fail](https://github.com/elastic/elasticsearch/issues/102355).


-- 
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: issues-unsubscr...@lucene.apache.org

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


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscr...@lucene.apache.org
For additional commands, e-mail: issues-h...@lucene.apache.org

Reply via email to