Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-15202

Status commands temporary break host component state machine

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 1.6.0
    • 2.2.2
    • ambari-server
    • None

    Description

      This occurs when status command response is received after start of next stage which modifies sch state (quite often on starting services during install).

      1. status command is sent to agent (happens every 60 seconds)
      2. start commands are scheduled, generated event which move sch from INSTALLED to STARTING
      3. status command response received from agent. sch status directly set to INSTALLED bypassing state machine
      4. All subsequent task reports from agent trigger InvalidTransitionException, as OP_INPROGRESS event tries to do STARTING -> STARTING transition.
      5. However at task end we support INSTALLED -> STARTED transition for STARTED event. So tasks finish normally.

      Attachments

        1. AMBARI-15202.patch
          7 kB
          Papirkovskyy Myroslav

        Issue Links

          Activity

            People

              mpapirkovskyy Papirkovskyy Myroslav
              mpapirkovskyy Papirkovskyy Myroslav
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: