-
Notifications
You must be signed in to change notification settings - Fork 171
8223145: Replace wildcard address with loopback or local host in tests - part 1 #707
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
base: master
Are you sure you want to change the base?
Conversation
|
👋 Welcome back syan! A progress list of the required criteria for merging this PR into |
|
❗ This change is not yet ready to be integrated. |
|
This backport pull request has now been updated with issue and summary from the original commit. |
|
GHA report linux-x86 gc/concurrentMarkSweep/SystemGCOnForegroundCollector.java trigger jvm crash, which has been recorded by JDK-8361833. I think it's unrelated to this backport PR. |
…ace 'import jdk.test.lib.net.URIBuilder;' as 'import jdk.testlibrary.net.URIBuilder;'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks like you grabbed changes to TestHttpServer.java from somewhere, but git blame doesn't help me find from which JBS issue(s). If you know, and it makes sense to backport it/those, please add any such issues. Otherwise, lgtm as is.
|
|
Thanks for your patient reviews. I get the patch file of JDK-8223145 in main-line repo(git show 7d4520c109f408a7dbcdcc424dfef121e3eeaaa7) and the patch file for this PR, and then compare these two patch files. The added lines and removed lines are all the same for TestHttpServer.java file. So I think it do not have extra change for TestHttpServer.java. |
|
GHA report test gc/concurrentMarkSweep/SystemGCOnForegroundCollector.java fails on linux-x86, jvm crash at 'CompactibleFreeListSpace::block_size(HeapWord const*)'. This issue has been recorded by JDK-8361833. It's unrelated to this backport PR. /approval request Backport to fix the test bug. which may cause test imtermittent on some machines. Change has been verified both by locally and by full jtreg jenkins tests. Test-fix only, risk is low. |
|
@sendaoYan |
Hi, all
We observed the test java/net/Socket/GetLocalAddress.java intermittently fails "java.net.SocketException: Invalid argument or cannot assign requested address" very often. So I want to backport JDK-8223145 to jdk8u-dev to fix this issue.
Testing:
There are 3 types of files cause backport uncleanly.
jdk/test/com/sun/net/httpserver/bugs/B6361557.java
jdk/test/java/net/Socket/UrgentDataTest.java
jdk/test/sun/net/www/http/HttpURLConnection/PostOnDelete.java
Different context cause deal with copyright year manually.
jdk/test/java/net/Socket/TestAfterClose.java
jdk/test/java/net/ResponseCache/ResponseCacheTest.java
jdk/test/sun/net/www/protocol/http/B8012625.java
Test was added after jdk8+, so it's not needed deal with jdk8u-dev
java/net/SocketOption/OptionsTest.java
java/net/URLPermission/nstest/LookupTest.java
sun/net/www/http/HttpURLConnection/NTLMAuthWithSM.java
The test library located difference, so we need to adopt in jdk8u-dev: replace '@library /test/lib' as '@library /lib/testlibrary', and replace 'import jdk.test.lib.net.URIBuilder;' as 'import jdk.testlibrary.net.URIBuilder;'.
java/net/ResponseCache/ResponseCacheTest.java
java/net/HttpURLConnection/UnmodifiableMaps.java
sun/net/www/protocol/https/HttpsURLConnection/CookieHandlerTest.java
sun/net/www/http/KeepAliveStream/KeepAliveStreamClose.java
java/net/URL/GetContent.java
Progress
Issue
Reviewers
Reviewing
Using
gitCheckout this PR locally:
$ git fetch https://git.openjdk.org/jdk8u-dev.git pull/707/head:pull/707$ git checkout pull/707Update a local copy of the PR:
$ git checkout pull/707$ git pull https://git.openjdk.org/jdk8u-dev.git pull/707/headUsing Skara CLI tools
Checkout this PR locally:
$ git pr checkout 707View PR using the GUI difftool:
$ git pr show -t 707Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk8u-dev/pull/707.diff
Using Webrev
Link to Webrev Comment