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

Improve stability of java/nio/channels/DatagramChannel tests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • None
    • core-libs
    • None
    • b12

      Several java/nio/channels/DatagramChannel tests fail intermittently. Though it seems difficult to fix all intermittent failures due to the nature of what some of these attempt to test, the stability can still be improved.

      The most common source of intermittent failures are:
       - not receiving a datagram due to port conflict or interference of concurrent running tests
       - failure to disconnect due to interference of concurrent running tests
       - failure due to reception of unexpected stray datagrams

      Avoiding to bind on the wildcard address, filtering unexpected datagram, and some retrying can aleviate some of the issues and greatly reduce the frequency of intermittent failures.

            dfuchs Daniel Fuchs
            dfuchs Daniel Fuchs
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: