glassfish
  1. glassfish
  2. GLASSFISH-17116

list-instances lets asadmin timeout when an instance is hung

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1.1
    • Fix Version/s: 3.1.2_b15, 4.0_b15
    • Component/s: admin
    • Labels:
      None

      Description

      When an instance is hung, then the list-instances command hangs too until asadmin finally times out after 600 seconds.

      The reason for this is that list-instances (via InstanceState) uses InstanceCommandExecutor to run the __locations command on the instance. This class runs the command without any timeout.

      To fix this bug, the connection to the instance should timeout after some reasonable interval (less than the time asadmin is waiting).

      This issue is being raised due to hang problems that have been experienced with AIX testing. With these hangs, it is possible to initiate a TCP connection to the process, but the connection attempt just hangs; it isn't processed and it isn't refused. To simulate this, set a breakpoint in the __locations command of the instance and see what list-instances does.

      The desirable output from list-instances in this situation is that the state of the instance would be reported as "non-responsive" or "hung".

        Issue Links

          Activity

          Tom Mueller created issue -
          scatari made changes -
          Field Original Value New Value
          Tags 3_1_2-review
          Byron Nevins made changes -
          Fix Version/s 4.0_b15 [ 14801 ]
          Fix Version/s 3.1.2_b14 [ 15328 ]
          Joe Di Pol made changes -
          Tags 3_1_2-review 3_1_2-approved
          Joe Di Pol made changes -
          Fix Version/s 3.1.2_b15 [ 15329 ]
          Fix Version/s 3.1.2_b14 [ 15328 ]
          Byron Nevins made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Byron Nevins made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Byron Nevins made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          Byron Nevins made changes -
          Link This issue is duplicated by GLASSFISH-18066 [ GLASSFISH-18066 ]
          Byron Nevins made changes -
          Link This issue blocks GLASSFISH-18091 [ GLASSFISH-18091 ]
          Byron Nevins made changes -
          Link This issue blocks GLASSFISH-18091 [ GLASSFISH-18091 ]
          Byron Nevins made changes -
          Link This issue is related to GLASSFISH-18091 [ GLASSFISH-18091 ]
          Byron Nevins made changes -
          Link This issue is related to GLASSFISH-20110 [ GLASSFISH-20110 ]

            People

            • Assignee:
              Byron Nevins
              Reporter:
              Tom Mueller
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: