Details

    • Type: Task Task
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 3.1
    • Fix Version/s: None
    • Component/s: admin
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      12,586

      Description

      How do we find out if a server is running? A mess of calls to:

      1) simple java.net socket calls
      2) version command
      3) uptime command
      4) _directories commands

      Perhaps we should go through and consolidate?

      Assigning to Bill simply so that he can provide opinions/advice. Maybe make
      this 3.2/4.0 ????

        Activity

        Hide
        Bill Shannon added a comment -

        Right now we have these:

        LocalServerCommand.isRunning - simply tries to connect to the admin port
        DASUtils.pingDAS* - executes the version command on the server
        LocalServerCommand.isThisServer - uses __locations to make sure it's talking to
        the correct server
        LocalDomainCommand.isThisDAS - uses isThisServer
        LocalServerCommand.getUptime - used when restarting

        A bunch of stuff uses isRunning. A few things use pingDAS*.

        The problem with isRunning is that it doesn't tell you if the server you're
        asking about is the server that's actually running.

        I suspect what we really need is a new method that uses __locations and also
        returns detailed failure status like pingDASWithAuth, at least for the cases
        where we're asking about the DAS. When asking about an instance, we may have
        to settle for isRunning.

        Show
        Bill Shannon added a comment - Right now we have these: LocalServerCommand.isRunning - simply tries to connect to the admin port DASUtils.pingDAS* - executes the version command on the server LocalServerCommand.isThisServer - uses __locations to make sure it's talking to the correct server LocalDomainCommand.isThisDAS - uses isThisServer LocalServerCommand.getUptime - used when restarting A bunch of stuff uses isRunning. A few things use pingDAS*. The problem with isRunning is that it doesn't tell you if the server you're asking about is the server that's actually running. I suspect what we really need is a new method that uses __locations and also returns detailed failure status like pingDASWithAuth, at least for the cases where we're asking about the DAS. When asking about an instance, we may have to settle for isRunning.
        Hide
        Tom Mueller added a comment -

        Clear the Fix version since this issue isn't going to be fixed for 3.1.

        Show
        Tom Mueller added a comment - Clear the Fix version since this issue isn't going to be fixed for 3.1.

          People

          • Assignee:
            Bill Shannon
            Reporter:
            Byron Nevins
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: