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

JDK-8323276: StressDirListings.java fails on AIX #17363

Closed
wants to merge 2 commits into from

Conversation

varada1110
Copy link
Contributor

@varada1110 varada1110 commented Jan 11, 2024

The delay in response has caused an incomplete test and timeout error. Setting the TCP_NODELAY socket option to 1 by the property sun.net.httpserver.nodelay solves the issue.

JBS Issue : JDK-8323276


Progress

  • Change must be properly reviewed (1 review required, with at least 1 Reviewer)
  • Change must not contain extraneous whitespace
  • Commit message must refer to an issue

Issue

  • JDK-8323276: StressDirListings.java fails on AIX (Bug - P4)

Reviewers

Reviewing

Using git

Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/17363/head:pull/17363
$ git checkout pull/17363

Update a local copy of the PR:
$ git checkout pull/17363
$ git pull https://git.openjdk.org/jdk.git pull/17363/head

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 17363

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

Using diff file

Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/17363.diff

Webrev

Link to Webrev Comment

@bridgekeeper
Copy link

bridgekeeper bot commented Jan 11, 2024

👋 Welcome back varadam! 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 Jan 11, 2024
@openjdk
Copy link

openjdk bot commented Jan 11, 2024

@varada1110 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 Jan 11, 2024
@mlbridge
Copy link

mlbridge bot commented Jan 11, 2024

Webrevs

Copy link
Member

@jaikiran jaikiran left a comment

Choose a reason for hiding this comment

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

The change looks OK to me. We set this property in a couple of other tests for similar reasons. I've run this change against our internal CI (with a test repeat of 50) and the test continues to pass.

Please update the copyright year to 2024 from 2022.

@openjdk
Copy link

openjdk bot commented Jan 11, 2024

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

8323276: StressDirListings.java fails on AIX

Reviewed-by: jpai, 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 50 new commits pushed to the master branch:

  • b922f8d: 8319793: C2 compilation fails with "Bad graph detected in build_loop_late" after JDK-8279888
  • 35e9662: 8314515: java/util/concurrent/SynchronousQueue/Fairness.java failed with "Error: fair=false i=8 j=0"
  • cb1d25f: 8323330: [BACKOUT] JDK-8276809: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java shows JNI warning on Windows
  • 2b7fc05: 8264102: JTable Keyboards Navigation differs with Test Instructions.
  • af942a6: 8323188: JFR: Needless RESOURCE_ARRAY when sending EventOSInformation
  • 26de9e2: 8321616: Retire binary test vectors in test/jdk/java/util/zip/ZipFile
  • b530c02: 8317804: com/sun/jdi/JdwpAllowTest.java fails on Alpine 3.17 / 3.18
  • e70cb4e: 8322565: (zipfs) Files.setPosixPermissions should preserve 'external file attributes' bits
  • d89602a: 8322982: CTW fails to build after 8308753
  • 3bd9042: 8320788: The system properties page is missing some properties
  • ... and 40 more: https://git.openjdk.org/jdk/compare/075fed91bd144d94328e198b41ea2946961940e9...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 (@jaikiran, @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 Jan 11, 2024
@varada1110
Copy link
Contributor Author

Updated the copyright year.
Thank you
/integrate

@openjdk openjdk bot added the sponsor Pull request is ready to be sponsored label Jan 11, 2024
@openjdk
Copy link

openjdk bot commented Jan 11, 2024

@varada1110
Your change (at version 7855d90) is now ready to be sponsored by a Committer.

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.

LGTM

@jaikiran
Copy link
Member

/sponsor

@openjdk
Copy link

openjdk bot commented Jan 11, 2024

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

  • b922f8d: 8319793: C2 compilation fails with "Bad graph detected in build_loop_late" after JDK-8279888
  • 35e9662: 8314515: java/util/concurrent/SynchronousQueue/Fairness.java failed with "Error: fair=false i=8 j=0"
  • cb1d25f: 8323330: [BACKOUT] JDK-8276809: java/awt/font/JNICheck/FreeTypeScalerJNICheck.java shows JNI warning on Windows
  • 2b7fc05: 8264102: JTable Keyboards Navigation differs with Test Instructions.
  • af942a6: 8323188: JFR: Needless RESOURCE_ARRAY when sending EventOSInformation
  • 26de9e2: 8321616: Retire binary test vectors in test/jdk/java/util/zip/ZipFile
  • b530c02: 8317804: com/sun/jdi/JdwpAllowTest.java fails on Alpine 3.17 / 3.18
  • e70cb4e: 8322565: (zipfs) Files.setPosixPermissions should preserve 'external file attributes' bits
  • d89602a: 8322982: CTW fails to build after 8308753
  • 3bd9042: 8320788: The system properties page is missing some properties
  • ... and 40 more: https://git.openjdk.org/jdk/compare/075fed91bd144d94328e198b41ea2946961940e9...master

Your commit was automatically rebased without conflicts.

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

openjdk bot commented Jan 11, 2024

@jaikiran @varada1110 Pushed as commit e5aed6b.

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

@ecki
Copy link
Contributor

ecki commented Jan 11, 2024

BTW what would http server use Nagel algorithm by default and why is it affecting aix and this test so much. Is there maybe buffering or flushing missing?

@jaikiran
Copy link
Member

Hello Bernd,

BTW what would http server use Nagel algorithm by default and why is it affecting aix and this test so much. Is there maybe buffering or flushing missing?

I don't know about this specific AIX setup where this was causing an issue. However, in the past we have seen this happen in some other tests too on Linux (https://bugs.openjdk.org/browse/JDK-8294610). While investigating that other test, we had noticed that in a situation where there are a lot of HTTP request/response between the client and the server (like in this current StressDirListings test) and if the server responds to each request with relatively small content, then at the TCP layer on the client side, the ACKs aren't sent back to the server immediately. Instead, the (TCP) ACKs are delayed by the client's host to the server's host. This then causes the server's host to wait for the ACKs before pushing the next set of data packets to the client, even though the application layer HTTP server keeps writing out content.

This ultimately boils down to what's explained in the description of https://bugs.openjdk.org/browse/JDK-6968351.

@ecki
Copy link
Contributor

ecki commented Jan 27, 2024

ah maybe aix has not the nagel optimization which recognized full+partial packets (Minshall)

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.

4 participants