Improve stability of java/nio/channels/DatagramChannel tests

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 24
    • Affects Version/s: None
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: