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

start server should skip assertAvailablePort if --cache-xml is specified when --server-port is not specified

    XMLWordPrintableJSON

Details

    • Wish
    • Status: Closed
    • Major
    • Resolution: Invalid
    • None
    • 1.0.0-incubating
    • management
    • None

    Description

      1) start a server with --server-port 40404
      2) start a 2nd server without specifying --server-port or --disable-default-server but do specify --cache-xml containing a unique server port
      3) start will fail due to assertAvailablePort

      The error will look something like:

      java.lang.RuntimeException: An IO error occurred while starting a Server in /dx2-office-dhcp32 on dx2-office-dhcp32[40404]: Network is unreachable; port (40404) is not available on localhost.

      Work-around is to specify --disable-default-server in step #2. This will cause it to skip assertAvailablePort(40404).

      I believe it's more intuitive to the user if we also make the change to skip assertAvailablePort(40404) if --cache-xml is specified when --server-port is not specified.

      Attachments

        Activity

          People

            swapnil.bawaskar Swapnil Bawaskar
            klund Kirk Lund
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: