jdk8u-dev icon indicating copy to clipboard operation
jdk8u-dev copied to clipboard

8238274: (sctp) JDK-7118373 is not fixed for SctpChannel

Open ktakakuri opened this issue 1 year ago • 10 comments
trafficstars

This is a backport of JDK-8238274: (sctp) JDK-7118373 is not fixed for SctpChannel.

This backport is not clean because the test added in this fix uses an API that is not in JDK8.
It has been replaced by the API that is available in JDK8, but the logic of the test remains unchanged.

Also, the constant LIMIT_LINES used in the test must be 3 due to differences in the behavior of the ServerSocket constructor.
When the constructor of ServerSocket is called, the file descriptor is not created in JDK17, but it is created in JDK8, so the number of lines obtained by lsof is different.

Testing:
jdk/com/sun/nio/sctp
on Linux x86_64


Progress

  • [x] Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • [x] Change must not contain extraneous whitespace
  • [ ] JDK-8238274 needs maintainer approval
  • [x] Commit message must refer to an issue

Issue

  • JDK-8238274: (sctp) JDK-7118373 is not fixed for SctpChannel (Bug - P4 - Requested)

Reviewers

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 427

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

Using diff file

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

Webrev

Link to Webrev Comment

ktakakuri avatar Jan 24 '24 12:01 ktakakuri

:wave: Welcome back ktakakuri! 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.

bridgekeeper[bot] avatar Jan 24 '24 12:01 bridgekeeper[bot]

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

openjdk[bot] avatar Jan 24 '24 12:01 openjdk[bot]

Webrevs

mlbridge[bot] avatar Jan 24 '24 12:01 mlbridge[bot]

GHA failures look to be infrastructure issues.

phohensee avatar Jan 25 '24 19:01 phohensee

⚠️ @ktakakuri 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[bot] avatar Jan 25 '24 19:01 openjdk[bot]

@ktakakuri 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!

bridgekeeper[bot] avatar Feb 23 '24 00:02 bridgekeeper[bot]

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

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

8238274: (sctp) JDK-7118373 is not fixed for SctpChannel

Reviewed-by: phh, andrew

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

  • b499ea7ec2ffb2211a67d38b3bd689a77866cb0d: 8030204: com/sun/jdi/JdbExprTest.sh: Required output "Can\'t convert 2147483648 to int" not found
  • b1e2ea81f45d9b144e1de8d16b2b698f1788d4d7: 8279164: Disable TLS_ECDH_* cipher suites
  • 6abb3f27b9a535f741c7d3a8dfa0d6b811263a9e: 8035395: sun/management/jmxremote/startstop/JMXStartStopTest.java fails intermittently: Port already in use
  • 683860572c87e9c89ba7de45264c1d32b195db8c: 8311666: Disabled tests in test/jdk/sun/java2d/marlin
  • bfb1a7d1e34ed2e0e88e67a5f77410de097fc489: 4660158: TTY: NumberFormatException while trying to set values by 'set' command
  • 0357abbfe41fc3dc244c30e48f8f9193219ea406: 8324632: Update Zlib Data Compression Library to Version 1.3.1
  • 61dde50292198f9f35f906eef00b1fd002a19074: 8333724: Problem list security/infra/java/security/cert/CertPathValidator/certification/CAInterop.java#teliasonerarootcav1
  • 8892b817af1b25520b05608a30ea539dd0c0b25f: 8326521: JFR: CompilerPhase event test fails on windows 32 bit
  • 9da7380962e4532c880235c1dc74c9333a1b52f1: 8331730: [8u] GHA: update sysroot for cross builds to Debian bullseye
  • 9a7aa794506ded4771d8a29356c20f7c0c6e8327: 8333669: [8u] GHA: Dead VS2010 download link
  • ... and 62 more: https://git.openjdk.org/jdk8u-dev/compare/552c6866d8ad71ef247b5303f78fa7a65506aea9...master

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 (@phohensee, @gnu-andrew) 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[bot] avatar Mar 13 '24 20:03 openjdk[bot]

/approval request This fix adds the preClose check appropriately. The test added in this patch do not work as is in 8u, so I have made some modifications. Testing: jdk/com/sun/nio/sctp on Linux x86_64

ktakakuri avatar Apr 03 '24 12:04 ktakakuri

@ktakakuri 8238274: The approval request has been created successfully.

openjdk[bot] avatar Apr 03 '24 12:04 openjdk[bot]

@ktakakuri 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!

bridgekeeper[bot] avatar May 01 '24 15:05 bridgekeeper[bot]

@ktakakuri This pull request has been inactive for more than 8 weeks and will now be automatically closed. If you would like to continue working on this pull request in the future, feel free to reopen it! This can be done using the /open pull request command.

bridgekeeper[bot] avatar May 29 '24 17:05 bridgekeeper[bot]

/open

ktakakuri avatar May 30 '24 01:05 ktakakuri

@ktakakuri This pull request is now open

openjdk[bot] avatar May 30 '24 01:05 openjdk[bot]

Thank you. I replaced List.of with Utils.listOf.

ktakakuri avatar Jun 17 '24 09:06 ktakakuri

/approve yes

gnu-andrew avatar Jun 25 '24 12:06 gnu-andrew

@gnu-andrew 8238274: The approval request has been approved.

openjdk[bot] avatar Jun 25 '24 12:06 openjdk[bot]

/integrate

ktakakuri avatar Jun 26 '24 00:06 ktakakuri

@ktakakuri Your change (at version 476e09d584d57fbc491ceec999e900627695238f) is now ready to be sponsored by a Committer.

openjdk[bot] avatar Jun 26 '24 00:06 openjdk[bot]

/sponsor

phohensee avatar Jun 27 '24 13:06 phohensee

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

  • b499ea7ec2ffb2211a67d38b3bd689a77866cb0d: 8030204: com/sun/jdi/JdbExprTest.sh: Required output "Can\'t convert 2147483648 to int" not found
  • b1e2ea81f45d9b144e1de8d16b2b698f1788d4d7: 8279164: Disable TLS_ECDH_* cipher suites
  • 6abb3f27b9a535f741c7d3a8dfa0d6b811263a9e: 8035395: sun/management/jmxremote/startstop/JMXStartStopTest.java fails intermittently: Port already in use
  • 683860572c87e9c89ba7de45264c1d32b195db8c: 8311666: Disabled tests in test/jdk/sun/java2d/marlin
  • bfb1a7d1e34ed2e0e88e67a5f77410de097fc489: 4660158: TTY: NumberFormatException while trying to set values by 'set' command
  • 0357abbfe41fc3dc244c30e48f8f9193219ea406: 8324632: Update Zlib Data Compression Library to Version 1.3.1
  • 61dde50292198f9f35f906eef00b1fd002a19074: 8333724: Problem list security/infra/java/security/cert/CertPathValidator/certification/CAInterop.java#teliasonerarootcav1
  • 8892b817af1b25520b05608a30ea539dd0c0b25f: 8326521: JFR: CompilerPhase event test fails on windows 32 bit
  • 9da7380962e4532c880235c1dc74c9333a1b52f1: 8331730: [8u] GHA: update sysroot for cross builds to Debian bullseye
  • 9a7aa794506ded4771d8a29356c20f7c0c6e8327: 8333669: [8u] GHA: Dead VS2010 download link
  • ... and 62 more: https://git.openjdk.org/jdk8u-dev/compare/552c6866d8ad71ef247b5303f78fa7a65506aea9...master

Your commit was automatically rebased without conflicts.

openjdk[bot] avatar Jun 27 '24 13:06 openjdk[bot]

@phohensee @ktakakuri Pushed as commit a0715ab4bc71642203324a2c06774aacee35fda7.

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

openjdk[bot] avatar Jun 27 '24 13:06 openjdk[bot]