Uploaded image for project: 'Geode'
  1. Geode
  2. GEODE-10345

Unable to bind port in DUnit test with LocatorLauncher

    XMLWordPrintableJSON

Details

    • Test
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.16.0
    • None
    • locator, tests
    • None

    Description

      > Task :geode-assembly:distributedTest

      StartLocatorCommandDUnitTest > startLocatorRespectsHostnameForClients FAILED
      org.opentest4j.AssertionFailedError: [The Locator process terminated unexpectedly with exit status 1. Please refer to the log file in /tmp/junit4420570198856523478/junit1807706233748416943 for full details.

      Exception in thread "main" java.lang.RuntimeException: An IO error occurred while starting a Locator in /tmp/junit4420570198856523478/junit1807706233748416943 on heavy-lifter-2a24cff8-0d64-55e0-9585-2d6391f92533.c.apachegeode-ci.internal[10339]: Network is unreachable; port (10339) is not available on localhost.

      at org.apache.geode.distributed.LocatorLauncher.start(LocatorLauncher.java:801)

      at org.apache.geode.distributed.LocatorLauncher.run(LocatorLauncher.java:685)

      at org.apache.geode.distributed.LocatorLauncher.main(LocatorLauncher.java:222)

      Caused by: java.net.BindException: Network is unreachable; port (10339) is not available on localhost.

      at org.apache.geode.distributed.AbstractLauncher.assertPortAvailable(AbstractLauncher.java:142)

      at org.apache.geode.distributed.LocatorLauncher.start(LocatorLauncher.java:773)

      ... 2 more

      ]
      expected: OK
      but was: ERROR
      at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
      at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
      at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
      at org.apache.geode.test.junit.assertions.CommandResultAssert.statusIsSuccess(CommandResultAssert.java:108)
      at org.apache.geode.management.internal.cli.commands.StartLocatorCommandDUnitTest.startLocatorRespectsHostnameForClients(StartLocatorCommandDUnitTest.java:256)

      372 tests completed, 1 failed

      =============== Test Results URI =================
      http://files.apachegeode-ci.info/builds/apache-develop-mass-test-run/1.16.0-build.0261/test-results/distributedTest/1653765462/
      =========================================

      Test report artifacts from this job are available at:

      http://files.apachegeode-ci.info/builds/apache-develop-mass-test-run/1.16.0-build.0261/test-artifacts/1653765462/distributedtestfiles-openjdk8-1.16.0-build.0261.tgz

      Attachments

        Activity

          People

            Unassigned Unassigned
            joris.melchior Joris Melchior
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: