Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

JDK22 & JDK21: CommandLinePositiveTest.java (httpserver and jwebserver versions) both fail with address in use #5474

Closed
adamfarley opened this issue Aug 1, 2024 · 7 comments · Fixed by adoptium/infrastructure#3726
Assignees

Comments

@adamfarley
Copy link
Contributor

adamfarley commented Aug 1, 2024

Original comment by Shelley Lambert in the July 2024 General Retrospective:

x64 Windows: com/sun/net/httpserver/simpleserver/CommandLinePositiveTest.java and simpleserver/jwebserver/CommandLinePositiveTest.java are problematic for JDK22 and JDK21, address in use failures

@steelhead31
Copy link
Contributor

please assign to me.

@adamfarley
Copy link
Contributor Author

I can't. I've posted a request in the Slack channel.

@smlambert
Copy link
Contributor

Some recent Grinders in this triage comment #5445 (comment)

@sophia-guo
Copy link
Contributor

So it's intermittent. Feels like the tests are affected if ports are used by other processes. Should be excluded or not?

@steelhead31
Copy link
Contributor

steelhead31 commented Sep 2, 2024

After some investigation, the problematic command in the test is this..

00:03:42.529  [simpleserver]:c:\jenkins\workspace\Grinder\jdkbinary\j2sdk-image\bin\jwebserver.exe -b ::0
00:03:42.529  [simpleserver] Error: server config failed: java.net.BindException: Address already in use: bind

This command tries to start a java webserver without a specified port or address, which is localhost, but with port 8000.. this port is already in use by the incredibuild web dashboard ( which is not required on test machines ). I'll investigate disabling this service on the test machines, or switching it to a different port.

@steelhead31
Copy link
Contributor

steelhead31 commented Sep 2, 2024

Test runs :- 
✔️ test-azure-win2019-x64-1 : https://ci.adoptium.net/job/Grinder/10806 
✔️ test-azure-win2022-x64-1 : https://ci.adoptium.net/job/Grinder/10804 
✔️ test-azure-win2022-x64-2 : https://ci.adoptium.net/job/Grinder/10805 
✔️ test-azure-win2022-x64-3 : https://ci.adoptium.net/job/Grinder/10803/

@smlambert
Copy link
Contributor

thanks @steelhead31 ! Closed via adoptium/infrastructure#3726

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

4 participants