Skip to content

8053479: (dc) DatagramChannel.read() throws exception instead of discarding data when buffer too small #2291

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

Closed
wants to merge 2 commits into from

Conversation

tabjy
Copy link
Member

@tabjy tabjy commented Nov 22, 2023

A clean backport of JDK-8053479

This is a Windows-only issue. The corresponding test is NOT part of tier1 that's automatically verified by GHA. The following shows the test

One can verify locally with make run-test-prebuilt TEST='test/jdk/java/nio/channels/DatagramChannel/Truncate.java' ...


Progress

  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue
  • JDK-8053479 needs maintainer approval

Issue

  • JDK-8053479: (dc) DatagramChannel.read() throws exception instead of discarding data when buffer too small (Bug - P4 - Approved)

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk11u-dev.git pull/2291/head:pull/2291
$ git checkout pull/2291

Update a local copy of the PR:
$ git checkout pull/2291
$ git pull https://git.openjdk.org/jdk11u-dev.git pull/2291/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 2291

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk11u-dev/pull/2291.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Nov 22, 2023

👋 Welcome back kxu! 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 changed the title Backport 6ef474a4f4cfacc12db5e349c419fa4b41b346aa 8053479: (dc) DatagramChannel.read() throws exception instead of discarding data when buffer too small Nov 22, 2023
@openjdk
Copy link

openjdk bot commented Nov 22, 2023

This backport pull request has now been updated with issue from the original commit.

@openjdk
Copy link

openjdk bot commented Nov 22, 2023

⚠️ @tabjy This change is now ready for you to apply for maintainer approval. This can be done directly in each associated issue or by using the /approval command.

@openjdk openjdk bot added the rfr Pull request is ready for review label Nov 22, 2023
@mlbridge
Copy link

mlbridge bot commented Nov 22, 2023

Webrevs

@tabjy
Copy link
Member Author

tabjy commented Nov 22, 2023

/approval request Fix Request jdk11u
Applies cleanly. Issue reproducible and patched for Windows. GHA passes all tier 1 tests; the newly backported unit test passes.

@openjdk
Copy link

openjdk bot commented Nov 22, 2023

@tabjy
8053479: The approval request has been created successfully.

@openjdk openjdk bot added the approval label Nov 22, 2023
@openjdk
Copy link

openjdk bot commented Nov 23, 2023

@tabjy This change now passes all automated pre-integration checks.

After integration, the commit message for the final commit will be:

8053479: (dc) DatagramChannel.read() throws exception instead of discarding data when buffer too small

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:

  • a72d0b2: 8240754: Instrument FlowTest.java to provide more debug traces.
  • fca62cf: 8289077: Add manual tests to open
  • 250d7a8: 8214694: cleanup rawtypes warnings in open jndi tests
  • fac5955: 8238740: java/net/httpclient/whitebox/FlowTestDriver.java should not specify a TLS protocol
  • f2488a3: 8317374: Add Let's Encrypt ISRG Root X2

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.

➡️ 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 ready Pull request is ready to be integrated and removed approval labels Nov 23, 2023
@tabjy
Copy link
Member Author

tabjy commented Nov 23, 2023

/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Nov 23, 2023
@openjdk
Copy link

openjdk bot commented Nov 23, 2023

@tabjy
Your change (at version 944a46f) is now ready to be sponsored by a Committer.

@jerboaa
Copy link
Contributor

jerboaa commented Nov 28, 2023

/sponsor

@openjdk
Copy link

openjdk bot commented Nov 28, 2023

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

  • a956ba6: 8315692: Parallelize gc/stress/TestStressRSetCoarsening.java test
  • 911c359: 8249812: java/net/DatagramSocket/PortUnreachable.java still fails intermittently with SocketTimeoutException
  • bd7420a: 8224035: Replace wildcard address with loopback or local host in tests - part 9
  • f9bedac: 8218178: vmTestbase/vm/mlvm/mixed/stress/regression/b6969574/INDIFY_Test.java fails with -Xcomp
  • 345122d: 8067250: [mlvm] vm/mlvm/mixed/stress/regression/b6969574 fails and perf regression
  • 1f4decf: 8318759: Add four DigiCert root certificates
  • 6321d3e: 8316746: Top of lock-stack does not match the unlocked object
  • 2420592: 8312126: NullPointerException in CertStore.getCRLs after 8297955
  • a72d0b2: 8240754: Instrument FlowTest.java to provide more debug traces.
  • fca62cf: 8289077: Add manual tests to open
  • ... and 3 more: https://git.openjdk.org/jdk11u-dev/compare/78141024c23efab479b9e3cac851198299166155...master

Your commit was automatically rebased without conflicts.

@openjdk openjdk bot added the integrated Pull request has been integrated label Nov 28, 2023
@openjdk openjdk bot closed this Nov 28, 2023
@openjdk openjdk bot 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 Nov 28, 2023
@openjdk
Copy link

openjdk bot commented Nov 28, 2023

@jerboaa @tabjy Pushed as commit f65058e.

💡 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
backport clean integrated Pull request has been integrated
Development

Successfully merging this pull request may close these issues.

2 participants