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

8263364: sun/net/www/http/KeepAliveStream/KeepAliveStreamCloseWithWrongContentLength.java wedged in getInputStream #4472

Conversation

frkator
Copy link
Member

@frkator frkator commented Jun 11, 2021

@dfuch could you please review, thank you.


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • Change must be properly reviewed

Issue

  • JDK-8263364: sun/net/www/http/KeepAliveStream/KeepAliveStreamCloseWithWrongContentLength.java wedged in getInputStream

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/4472/head:pull/4472
$ git checkout pull/4472

Update a local copy of the PR:
$ git checkout pull/4472
$ git pull https://git.openjdk.java.net/jdk pull/4472/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 4472

View PR using the GUI difftool:
$ git pr show -t 4472

Using diff file

Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/4472.diff

@bridgekeeper
Copy link

bridgekeeper bot commented Jun 11, 2021

👋 Welcome back isipka! A progress list of the required criteria for merging this PR into master will be added to the body of your pull request. There are additional pull request commands available for use with this pull request.

@openjdk openjdk bot added the rfr Pull request is ready for review label Jun 11, 2021
@openjdk
Copy link

openjdk bot commented Jun 11, 2021

@frkator The following label will be automatically applied to this pull request:

  • net

When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing list. If you would like to change these labels, use the /label pull request command.

@openjdk openjdk bot added the net net-dev@openjdk.org label Jun 11, 2021
@mlbridge
Copy link

mlbridge bot commented Jun 11, 2021

Copy link
Member

@dfuch dfuch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Globally looks good - still need some cleanup to make sure everything gets closed in the end.

Copy link
Member

@dfuch dfuch left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - small change still needed in XServer::close

@openjdk
Copy link

openjdk bot commented Jun 15, 2021

@frkator 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:

8263364: sun/net/www/http/KeepAliveStream/KeepAliveStreamCloseWithWrongContentLength.java wedged in getInputStream

Reviewed-by: dfuchs

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 5 new commits pushed to the master branch:

  • a522d6b: 8273376: Zero: Disable vtable/itableStub gtests
  • 3cd95a2: 8231356: Fix broken ResourceObj::operator new[] in debug builds
  • 81c719b: 8273333: Zero should warn about unimplemented -XX:+LogTouchedMethods
  • 649c22c: 8270832: Aarch64: Update algorithm annotations for MacroAssembler::fill_words
  • eb22181: 8273386: Remove duplicated code in G1DCQS::abandon_completed_buffers

Please see this link for an up-to-date comparison between the source branch of this pull request and the master branch.
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 (@dfuch) but any other Committer may sponsor as well.

➡️ To flag this PR as ready for integration with the above commit message, type /integrate in a new comment. (Afterwards, your sponsor types /sponsor in a new comment to perform the integration).

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Jun 15, 2021
@frkator
Copy link
Member Author

frkator commented Jun 15, 2021

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Jun 15, 2021
@openjdk
Copy link

openjdk bot commented Jun 15, 2021

@frkator
Your change (at version 5a5dc15) is now ready to be sponsored by a Committer.

@frkator frkator force-pushed the JDK-8263364-keep-alive-should-not-throw-null branch from 5a5dc15 to a9bae10 Compare July 7, 2021 12:49
@openjdk openjdk bot removed the sponsor Pull request is ready to be sponsored label Jul 7, 2021
@bridgekeeper
Copy link

bridgekeeper bot commented Aug 4, 2021

@frkator This pull request has been inactive for more than 4 weeks and will be automatically closed if another 4 weeks passes without any activity. To avoid this, simply add a new comment to the pull request. Feel free to ask for assistance if you need help with progressing this pull request towards integration!

@frkator
Copy link
Member Author

frkator commented Aug 31, 2021

extend

@dfuch
Copy link
Member

dfuch commented Sep 1, 2021

@frkator Looks like your force-push on Jul 7 caused the sponsor label to be removed. Has anything changed - do I need to re-review?
In any case you will need to /integrate again before this can move forward (and please avoid force-push in the future)

@dfuch
Copy link
Member

dfuch commented Sep 2, 2021

Ah - I see that there are still problems with this test:

#section:main
----------messages:(4/225)----------
command: main KeepAliveStreamCloseWithWrongContentLength
reason: User specified action: run main/othervm/timeout=30 KeepAliveStreamCloseWithWrongContentLength 
Mode: othervm [/othervm specified]
elapsed time (seconds): 0.206
----------configuration:(0/0)----------
----------System.out:(9/153)----------
client reads: 49
client reads: 50
client reads: 51
client reads: 52
client reads: 53
client reads: 54
client reads: 55
client reads: 56
client reads: 57
----------System.err:(25/1821)----------
java.net.SocketException: Connection reset
	at java.base/sun.nio.ch.NioSocketImpl.implRead(NioSocketImpl.java:322)
	at java.base/sun.nio.ch.NioSocketImpl.read(NioSocketImpl.java:347)
	at java.base/sun.nio.ch.NioSocketImpl$1.read(NioSocketImpl.java:800)
	at java.base/java.net.Socket$SocketInputStream.read(Socket.java:966)
	at java.base/java.io.BufferedInputStream.fill(BufferedInputStream.java:244)
	at java.base/java.io.BufferedInputStream.read1(BufferedInputStream.java:284)
	at java.base/java.io.BufferedInputStream.read(BufferedInputStream.java:343)
	at java.base/sun.net.www.MeteredStream.read(MeteredStream.java:141)
	at java.base/java.io.FilterInputStream.read(FilterInputStream.java:132)
	at java.base/sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3663)
	at java.base/sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3656)
	at java.base/sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3644)
	at KeepAliveStreamCloseWithWrongContentLength.main(KeepAliveStreamCloseWithWrongContentLength.java:144)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at java.base/java.lang.reflect.Method.invoke(Method.java:568)
	at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
	at java.base/java.lang.Thread.run(Thread.java:833)

JavaTest Message: Test threw exception: java.net.SocketException: Connection reset
JavaTest Message: shutting down test

STATUS:Failed.`main' threw exception: java.net.SocketException: Connection reset

That would need to be fixed before integrating. IIRC I suggested some changes when we spoke off line some weeks ago. @frkator Did you carry them out?

@openjdk openjdk bot removed the ready Pull request is ready to be integrated label Sep 6, 2021
@openjdk openjdk bot removed the rfr Pull request is ready for review label Sep 6, 2021
@openjdk openjdk bot added ready Pull request is ready to be integrated rfr Pull request is ready for review labels Sep 6, 2021
@dfuch
Copy link
Member

dfuch commented Sep 7, 2021

Thanks for fixing. If you /integrate drop me a note and I will sponsor.

@frkator
Copy link
Member Author

frkator commented Sep 7, 2021

thank you @dfuch

@frkator
Copy link
Member Author

frkator commented Sep 7, 2021

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Sep 7, 2021
@openjdk
Copy link

openjdk bot commented Sep 7, 2021

@frkator
Your change (at version 419e3d3) is now ready to be sponsored by a Committer.

@dfuch
Copy link
Member

dfuch commented Sep 7, 2021

/sponsor

@openjdk
Copy link

openjdk bot commented Sep 7, 2021

Going to push as commit 5caa77b.
Since your change was applied there have been 5 commits pushed to the master branch:

  • a522d6b: 8273376: Zero: Disable vtable/itableStub gtests
  • 3cd95a2: 8231356: Fix broken ResourceObj::operator new[] in debug builds
  • 81c719b: 8273333: Zero should warn about unimplemented -XX:+LogTouchedMethods
  • 649c22c: 8270832: Aarch64: Update algorithm annotations for MacroAssembler::fill_words
  • eb22181: 8273386: Remove duplicated code in G1DCQS::abandon_completed_buffers

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot closed this Sep 7, 2021
@openjdk openjdk bot added integrated Pull request has been integrated and removed ready Pull request is ready to be integrated rfr Pull request is ready for review sponsor Pull request is ready to be sponsored labels Sep 7, 2021
@openjdk
Copy link

openjdk bot commented Sep 7, 2021

@dfuch @frkator Pushed as commit 5caa77b.

💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
integrated Pull request has been integrated net net-dev@openjdk.org
Development

Successfully merging this pull request may close these issues.

2 participants