[jdk25u-dev] RFR: 8368625: com/sun/net/httpserver/ServerStopTerminationTest.java fails intermittently
Roland Mesde
duke at openjdk.org
Wed Jan 28 21:15:17 UTC 2026
Backporting JDK-8368625: com/sun/net/httpserver/ServerStopTerminationTest.java fails intermittently.
This PR fixes the intermittent failures in ServerStopTerminationTest.java caused by flawed test timing logic and race conditions. It increases the timeout from 5 to 20 seconds to account for machine load and OS scheduling variability.
For parity with Oracle JDK.
Ran related tests on linux-x64, linux-aarch64, macos-aarch64 and windows-x64:
make test TEST=test/jdk/com/sun/net/httpserver/ServerStopTerminationTest.java
-------------
Commit messages:
- Backport 13b3d2fca1af71d0aa9908e19630c2e965dd7134
Changes: https://git.openjdk.org/jdk25u-dev/pull/196/files
Webrev: https://webrevs.openjdk.org/?repo=jdk25u-dev&pr=196&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8368625
Stats: 26 lines in 1 file changed: 10 ins; 11 del; 5 mod
Patch: https://git.openjdk.org/jdk25u-dev/pull/196.diff
Fetch: git fetch https://git.openjdk.org/jdk25u-dev.git pull/196/head:pull/196
PR: https://git.openjdk.org/jdk25u-dev/pull/196
More information about the jdk-updates-dev
mailing list