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

GfshCommandIntegrationTest fails because port 1099 is already in use

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 1.13.0
    • Component/s: management
    • Labels:
      None

      Description

      Saw this failure on Windows:

      org.apache.geode.management.internal.cli.commands.GfshCommandIntegrationTest > invalidCommandWhenConnected FAILED
          org.junit.ComparisonFailure: expected:<[tru]e> but was:<[fals]e>
              at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
              at jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
              at jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
              at org.apache.geode.test.junit.rules.GfshCommandRule.connectAndVerify(GfshCommandRule.java:163)
              at org.apache.geode.management.internal.cli.commands.GfshCommandIntegrationTest.invalidCommandWhenConnected(GfshCommandIntegrationTest.java:71)
      

      The underlying cause was:

      Connecting to Locator at [host=localhost, port=25690] ..
      Exception caused JMX Manager startup to fail because: 'java.rmi.server.ExportException: Port already in use: 1099; nested exception is: 
      	java.net.BindException: Failed to create server socket on 10.0.0.143[1099]'
      

      This test starts a locator and does not configure the jmx manager port. So it will default to 1099. It should set it to a random port.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                dschneider Darrel Schneider
                Reporter:
                dschneider Darrel Schneider
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 0.5h
                  0.5h