Skip to content

8381008: [aix] Test java/net/DatagramSocket/SendReceiveMaxSize.java#preferIPv6Loopback fails after JDK-8380824#30548

Open
MBaesken wants to merge 1 commit intoopenjdk:masterfrom
MBaesken:JDK-8381008
Open

8381008: [aix] Test java/net/DatagramSocket/SendReceiveMaxSize.java#preferIPv6Loopback fails after JDK-8380824#30548
MBaesken wants to merge 1 commit intoopenjdk:masterfrom
MBaesken:JDK-8381008

Conversation

@MBaesken
Copy link
Copy Markdown
Member

@MBaesken MBaesken commented Apr 2, 2026

When running java/net/DatagramSocket/SendReceiveMaxSize.java#preferIPv6Loopback on AIX, we get this failure


----------messages:(7/401)----------
command: testng -Dtest.preferLoopback=true -Djava.net.preferIPv6Addresses=true SendReceiveMaxSize
reason: User specified action: run testng/othervm -Dtest.preferLoopback=true -Djava.net.preferIPv6Addresses=true SendReceiveMaxSize
started: Wed Mar 25 23:02:04.160 CET 2026
Mode: othervm [/othervm specified]
Process id: 9306542
finished: Wed Mar 25 23:02:05.254 CET 2026
elapsed time (seconds): 1.094
----------configuration:(0/0)----------
----------System.out:(247/18212)----------
Seed from RandomFactory = 7291042597024848566L
Host address: localhost/0:0:0:0:0:0:0:1, Buffer limit: 65527
[23:02:04.981] config SendReceiveMaxSize.setUp(): success [0ms]
[23:02:05.076] test SendReceiveMaxSize.testSendReceiveMaxSize("DatagramSocket", 65526, SendReceiveMaxSize$$Lambda/0x0000034000207400@42e8ff27, null): failure [45ms]
java.net.SocketException: Message too long
at java.base/sun.nio.ch.DatagramChannelImpl.send0(Native Method)
at java.base/sun.nio.ch.DatagramChannelImpl.sendFromNativeBuffer(DatagramChannelImpl.java:914)
at java.base/sun.nio.ch.DatagramChannelImpl.send(DatagramChannelImpl.java:871)
at java.base/sun.nio.ch.DatagramChannelImpl.send(DatagramChannelImpl.java:798)
at java.base/sun.nio.ch.DatagramChannelImpl.blockingSend(DatagramChannelImpl.java:857)
at java.base/sun.nio.ch.DatagramSocketAdaptor.send(DatagramSocketAdaptor.java:179)
at java.base/java.net.DatagramSocket.send(DatagramSocket.java:593)
at SendReceiveMaxSize.testSendReceiveMaxSize(SendReceiveMaxSize.java:185)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:132)
at org.testng.internal.TestInvoker.invokeMethod(TestInvoker.java:599)
at org.testng.internal.TestInvoker.invokeTestMethod(TestInvoker.java:174)
at org.testng.internal.MethodRunner.runInSequence(MethodRunner.java:46)
at org.testng.internal.TestInvoker$MethodInvocationAgent.invoke(TestInvoker.java:822)
at org.testng.internal.TestInvoker.invokeTestMethods(TestInvoker.java:147)
at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:146)
at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:128)
at java.base/java.util.ArrayList.forEach(ArrayList.java:1612)
at org.testng.TestRunner.privateRun(TestRunner.java:764)
at org.testng.TestRunner.run(TestRunner.java:585)
at org.testng.SuiteRunner.runTest(SuiteRunner.java:384)
at org.testng.SuiteRunner.runSequentially(SuiteRunner.java:378)
at org.testng.SuiteRunner.privateRun(SuiteRunner.java:337)
at org.testng.SuiteRunner.run(SuiteRunner.java:286)
at org.testng.SuiteRunnerWorker.runSuite(SuiteRunnerWorker.java:53)
at org.testng.SuiteRunnerWorker.run(SuiteRunnerWorker.java:96)
at org.testng.TestNG.runSuitesSequentially(TestNG.java:1218)
at org.testng.TestNG.runSuitesLocally(TestNG.java:1140)
at org.testng.TestNG.runSuites(TestNG.java:1069)
at org.testng.TestNG.run(TestNG.java:1037)
at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:109)
at com.sun.javatest.regtest.agent.TestNGRunner.main(TestNGRunner.java:65)
at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
at java.base/java.lang.reflect.Method.invoke(Method.java:565)
at com.sun.javatest.regtest.agent.MainWrapper$MainTask.run(MainWrapper.java:138)
at java.base/java.lang.Thread.run(Thread.java:1527)
[23:02:05.079] test SendReceiveMaxSize.testSendReceiveMaxSize("DatagramSocket", 65527, SendReceiveMaxSize$$Lambda/0x0000034000207400@42e8ff27, null): failure [1ms]
java.net.SocketException: Message too long
at java.base/sun.nio.ch.DatagramChannelImpl.send0(Native Method)
at java.base/sun.nio.ch.DatagramChannelImpl.sendFromNativeBuffer(DatagramChannelImpl.java:914)
at java.base/sun.nio.ch.DatagramChannelImpl.send(DatagramChannelImpl.java:871)
at java.base/sun.nio.ch.DatagramChannelImpl.send(DatagramChannelImpl.java:798)
at java.base/sun.nio.ch.DatagramChannelImpl.blockingSend(DatagramChannelImpl.java:857)
at java.base/sun.nio.ch.DatagramSocketAdaptor.send(DatagramSocketAdaptor.java:179)
at java.base/java.net.DatagramSocket.send(DatagramSocket.java:593)

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-8381008: [aix] Test java/net/DatagramSocket/SendReceiveMaxSize.java#preferIPv6Loopback fails after JDK-8380824 (Bug - P4)

Reviewers

Contributors

  • Daniel Fuchs <dfuchs@openjdk.org>

Reviewing

Using git

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

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

Using Skara CLI tools

Checkout this PR locally:
$ git pr checkout 30548

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

Using diff file

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

Using Webrev

Link to Webrev Comment

@bridgekeeper
Copy link
Copy Markdown

bridgekeeper bot commented Apr 2, 2026

👋 Welcome back mbaesken! 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
Copy link
Copy Markdown

openjdk bot commented Apr 2, 2026

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

8381008: [aix] Test java/net/DatagramSocket/SendReceiveMaxSize.java#preferIPv6Loopback fails after JDK-8380824

Co-authored-by: Daniel Fuchs <dfuchs@openjdk.org>
Reviewed-by: mdoerr, 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 1 new commit pushed to the master branch:

  • a506853: 8374020: Inconsistent handling of type updates in typeWithAnnotations

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.

➡️ To integrate this PR with the above commit message to the master branch, type /integrate in a new comment.

@openjdk openjdk bot changed the title JDK-8381008: [aix] Test java/net/DatagramSocket/SendReceiveMaxSize.java#preferIPv6Loopback fails after JDK-8380824 8381008: [aix] Test java/net/DatagramSocket/SendReceiveMaxSize.java#preferIPv6Loopback fails after JDK-8380824 Apr 2, 2026
@openjdk openjdk bot added the net net-dev@openjdk.org label Apr 2, 2026
@openjdk
Copy link
Copy Markdown

openjdk bot commented Apr 2, 2026

@MBaesken 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 rfr Pull request is ready for review label Apr 2, 2026
@mlbridge
Copy link
Copy Markdown

mlbridge bot commented Apr 2, 2026

Webrevs

@MBaesken
Copy link
Copy Markdown
Member Author

MBaesken commented Apr 2, 2026

/help

@openjdk
Copy link
Copy Markdown

openjdk bot commented Apr 2, 2026

@MBaesken Available commands:

  • approval - request for maintainer's approval
  • approve - null
  • author - sets an overriding author to be used in the commit when the PR is integrated
  • backport - create a backport
  • cc - add or remove an additional classification label
  • clean - Mark the backport pull request as a clean backport
  • contributor - adds or removes additional contributors for a PR
  • covered - used when employer has signed the OCA
  • csr - require a compatibility and specification request (CSR) for this pull request
  • help - shows this text
  • integrate - performs integration of the changes in the PR
  • issue - edit the list of issues that this PR solves
  • jep - require a JDK Enhancement Proposal (JEP) for this pull request
  • keepalive - Re-evaluates the pull request and resets the inactivity timeout.
  • label - add or remove an additional classification label
  • open - Set the pull request state to "open"
  • reviewer - manage additional reviewers for a PR
  • reviewers - set the number of additional required reviewers for this PR
  • signed - used after signing the OCA
  • solves - edit the list of issues that this PR solves
  • sponsor - performs integration of a PR that is authored by a non-committer
  • summary - updates the summary in the commit message
  • template - Appends a pull request template to the pull request body.
  • test - used to run tests
  • touch - Re-evaluates the pull request and resets the inactivity timeout.

For additional details, see Pull Request Commands documentation

@MBaesken
Copy link
Copy Markdown
Member Author

MBaesken commented Apr 2, 2026

/contributor add dfuchs

@openjdk
Copy link
Copy Markdown

openjdk bot commented Apr 2, 2026

@MBaesken
Contributor Daniel Fuchs <dfuchs@openjdk.org> successfully added.

Copy link
Copy Markdown
Contributor

@TheRealMDoerr TheRealMDoerr left a comment

Choose a reason for hiding this comment

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

LGTM. Thanks for fixing it!

@openjdk openjdk bot added the ready Pull request is ready to be integrated label Apr 2, 2026
Copy link
Copy Markdown
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.

This looks OK to me. Please wait for Daniel's review who has been investigating this issue.

Copy link
Copy Markdown
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.

Thanks @MBaesken ! Looks good to me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

net net-dev@openjdk.org ready Pull request is ready to be integrated rfr Pull request is ready for review

Development

Successfully merging this pull request may close these issues.

4 participants