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

Create fewer predictable port clashes in management tests

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 22
    • None
    • core-svc
    • None

      Tests in test/jdk/javax/management/remote/mandatory frequently run together, and try to use the same port for their call to LocateRegistry.createRegistry(port);

      The tests have a loop intended to avoid port clashes: this tries a very wide range of ports, and although it does detect a port that is in use, it rarely needs to retry even a few times.

      Specifically on linux-aarch64 the port in use detection appears "racy" such that the clash sometimes goes unnoticed until it's too late, causing test failures.

            kevinw Kevin Walls
            kevinw Kevin Walls
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: