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

Client-only services transition to the STARTED state

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4.3
    • None
    • None
    • None

    Description

      In Ambari 1.4.1 and previous versions, a service which only contained client components would never transition to the "STARTED" state and would instead be in the "INSTALLED" state.

      This seems to have changed in Ambari 1.4.3. Client-only services now transition to the "STARTED" service, and it seems that trying to transition them to the "INSTALLED" service generates an error code 400.

      I asked about this in the Ambari user list and Sumit was kind enough to provide this context about the issue:

      The state of the service is now calculated based on the actual states of the master host components that belong to the service. E.g. if a master component (NAMENODE for HDFS) is INSTALLED then the state of the service will be INSTALLED.

      What is happening in the case of client only services is that the code is picking up the default value which happens to be STARTED. This could instead be computed based on the state of all non-master components - e.g. if all are INSTALLED then the service state is INSTALLED. Pls. open a JIRA and we can discuss it over there.

      I would recommend, as part of the above JIRA, we add some unit tests covering client only services and state of the service wrt. the state of the client.

      -Sumit

      Attachments

        Issue Links

          Activity

            People

              tbeerbower Tom Beerbower
              edrevo Ximo Guanter
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: