-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
8299487: Test java/net/httpclient/whitebox/SSLTubeTestDriver.java timed out #19663
Conversation
👋 Welcome back dfuchs! A progress list of the required criteria for merging this PR into |
@dfuch This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 13 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. ➡️ To integrate this PR with the above commit message to the |
Webrevs
|
@@ -144,6 +146,7 @@ private void clientReader() { | |||
publisher.submit(List.of(bb)); | |||
} | |||
} catch (Throwable e) { | |||
System.out.println("clientReader got exception: " + e); |
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.
Hello Daniel, I think since we are printing the stacktrace on the next line, it might be better to use System.err.println
here so that this message to ends up in the System.err
section like the stacktrace. Same suggestion for 2 more places in this PR where we are introducing such messages in the Throwable block.
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.
I wanted to print this on System.out by design - to avoid the trace being lost among the many debug traces on System.err. What I'm interested mostly here is knowing whether the thread exited normally or with an error.
If you believe it's important enough I believe we could write both on System.out and System.err, but I specifically wanted it on System.out.
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.
If you believe it's important enough I believe we could write both on System.out and System.err, but I specifically wanted it on System.out.
The current way you have it is fine. I didn't know the use of System.out
was intentional.
@@ -212,14 +216,18 @@ private void serverLoopback() { | |||
is.close(); | |||
os.close(); | |||
serverSock.close(); | |||
System.out.println("serverLooback exiting normally"); |
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.
Typo in the message, should have been serverLoopback ...
. Same in 1 other place.
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.
will fix
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.
The changes look OK to me. I have added a couple of trivial review comments inline.
/integrate |
Going to push as commit 81083a0.
Your commit was automatically rebased without conflicts. |
Here is a trivial change that might fix intermittent failures in the test java/net/httpclient/whitebox/SSLTubeTestDriver.java.
The change makes sure the client connects using the loopback address instead of "localhost".
In case that does not fix the issue, some additional logging has been added to try to understand what's going on.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/19663/head:pull/19663
$ git checkout pull/19663
Update a local copy of the PR:
$ git checkout pull/19663
$ git pull https://git.openjdk.org/jdk.git pull/19663/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 19663
View PR using the GUI difftool:
$ git pr show -t 19663
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/19663.diff
Webrev
Link to Webrev Comment