ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ximo Guanter (JIRA)" <>
Subject [jira] [Created] (AMBARI-4760) Client-only services transition to the STARTED state
Date Thu, 20 Feb 2014 15:00:33 GMT
Ximo Guanter created AMBARI-4760:

             Summary: Client-only services transition to the STARTED state
                 Key: AMBARI-4760
             Project: Ambari
          Issue Type: Bug
    Affects Versions: 1.4.3
            Reporter: Ximo Guanter

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.


This message was sent by Atlassian JIRA

View raw message