Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8277080

java/nio/channels/DatagramChannel/AdaptorMulticasting.java fails intermittently in network interface equality test

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 18
    • core-libs
    • Fix Understood
    • x86_64
    • os_x

      log extract

      testSendNoReceive
      testSendReceive
      testSendNoReceive
      ----------System.err:(14/760)----------
      java.lang.RuntimeException
      at AdaptorMulticasting.assertTrue(AdaptorMulticasting.java:471)
      at AdaptorMulticasting.testNetworkInterface(AdaptorMulticasting.java:298)
      at AdaptorMulticasting.test(AdaptorMulticasting.java:103)
      at AdaptorMulticasting.main(AdaptorMulticasting.java:81)
      at java.base/jdk.internal.reflect.DirectMethodHandleAccessor.invoke(DirectMethodHandleAccessor.java:104)
      at java.base/java.lang.reflect.Method.invoke(Method.java:577)
      at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:127)
      at java.base/java.lang.Thread.run(Thread.java:833)

      Network interfaces can be subject to intermittent reconfiguration, where the ad hoc IPv6 configured address expires and a new one allocated and bound. This transient condition can occur during a test such that an equality test on an networkinterface unexpectedly equates to false. NetworkConfiguration has been amended with isSameInterface, which can be used in this test to replace equality test.

            msheppar Mark Sheppard
            msheppar Mark Sheppard
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: