-
Notifications
You must be signed in to change notification settings - Fork 238
8293562: KeepAliveCache Blocks Threads while Closing Connections #1890
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
Conversation
Signed-off-by: Pooja.D.P <Pooja.D.P1@ibm.com>
Signed-off-by: Pooja.D.P <Pooja.D.P1@ibm.com>
👋 Welcome back PoojaDP-23! A progress list of the required criteria for merging this PR into |
Signed-off-by: Pooja.D.P <Pooja.D.P1@ibm.com>
Webrevs
|
Seems a duplicate of #1825 |
Hi @PoojaDP-23, |
@PoojaDP-23 Please use |
Thanks |
This backport pull request has now been updated with issue from the original commit. |
@PoojaDP-23 Please also merge latest |
@jerboaa - Yes, I have enabled Github Action testing on my fork |
@jerboaa - I have performed below steps to merge latest master into PR branch. Could you please take a look?
|
Hi @jerboaa |
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.
This seems OK to me. A few minor comments. What testing have you done?
@@ -268,8 +290,8 @@ private void readObject(ObjectInputStream stream) | |||
} | |||
} | |||
|
|||
/* FILO order for recycling HttpClients, should run in a thread | |||
* to time them out. If > maxConns are in use, block. | |||
/* LIFO order for reusing HttpClients. Most recent entries at the front. |
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.
Nit: Extraneous space in front of /*
.
"Wait for second request was interrupted")); | ||
} | ||
} else { | ||
System.out.println("name of the thread" +threadName); |
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.
This isn't part of the original change. Please remove.
"Close invoked from unexpected thread")); | ||
} | ||
System.out.println("Connection closed"); | ||
System.out.println(threadName); |
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.
Same here. Extraneous debug println()
?
The docs at https://www.oracle.com/java/technologies/javase/11-0-17-relnotes.html indicate this fix was done in 11.0.17.0.3. I'm assuming this is in error based on this PR still being open. |
Hi @darinhoward |
Yes, those are Oracle JDK release notes. This PR is for OpenJDK. |
Signed-off-by: Pooja.D.P <Pooja.D.P1@ibm.com>
@jerboaa - I have addressed review comments and I have enabled GHA actions to test and I have separately run the testcase "B8293562.java" with(passes) and without(fails) the fix to test these changes. Thanks |
@PoojaDP-23 This change now passes all automated pre-integration checks. 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 39 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. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@jerboaa) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
/integrate |
@PoojaDP-23 |
@PoojaDP-23 Please only integrate once you have approval from maintainers for this release. See |
/label |
@PoojaDP-23 Usage: |
@jerboaa - Could you please add the fix request to the jbs issue? Please let me know if there are any actions from my side. Thanks |
Done. Please mention what extra testing of the patch you've done here (other than the regtest). Thanks! |
Hi @PoojaDP-23 I assume JDK-8296438, which is listed as related issue, is a follow up. |
Please check https://bugs.openjdk.org/browse/JDK-8296943 before this gets sponsored. |
@GoeLin - Apologies for commenting integrate. @jerboaa - I have enabled GHA actions and also I have ran the TIER1 and TIER2 tests and all are passing and I have ran the jtreg test test/jdk/sun/net/www/http/KeepAliveCache/B8293562.java which passes with this fix and fails without the fix
TEST SUCCESS TIER: 2
TEST SUCCESS |
@jerboaa - I have checked https://bugs.openjdk.org/browse/JDK-8296943 and I have validated the test sun/net/www/http/HttpClient/MultiThreadTest.java with this fix and test is passing. Please take a look on below screenshot. |
OK, thanks! |
/sponsor |
Going to push as commit 770c1f6.
Your commit was automatically rebased without conflicts. |
@jerboaa @PoojaDP-23 Pushed as commit 770c1f6. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
fix: https://bugs.openjdk.org/browse/JDK-8293562
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/1890/head:pull/1890
$ git checkout pull/1890
Update a local copy of the PR:
$ git checkout pull/1890
$ git pull https://git.openjdk.org/jdk11u-dev.git pull/1890/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 1890
View PR using the GUI difftool:
$ git pr show -t 1890
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/1890.diff
Webrev
Link to Webrev Comment