-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/26139/
-----------------------------------------------------------

Review request for Ambari, Dmytro Sen and Sumit Mohanty.


Bugs: AMBARI-7542
    https://issues.apache.org/jira/browse/AMBARI-7542


Repository: ambari


Description
-------

INSTALL/START/STOP/CONFIGURE should be standart commands for all components. 
They should not be defined at metainfo.xml.
Actual result:
Send STOP/START custom command to RS. Result:
        {
          "order_id" : 2,
          "request_type" : "POST",
          "request_uri" : "/api/v1/clusters/c1/requests",
          "request_body" : "{\"RequestInfo\":{\"context\":\"Decommission 
RegionServer - Stop 
RegionServer\",\"command\":\"STOP\",\"exclusive\":\"true\",\"operation_level\":{\"level\":\"HOST_COMPONENT\",\"cluster_name\":\"c1\",\"host_name\":\"c6402.ambari.apache.org\",\"service_name\":\"HBASE\"}},\"Requests/resource_filters\":[{\"service_name\":\"HBASE\",\"component_name\":\"HBASE_REGIONSERVER\",\"hosts\":\"c6402.ambari.apache.org\"}]}",
          "request_status" : "FAILED",
          "return_code" : 500,
          "response_message" : "An internal system exception occurred: 
Unsupported action STOP for Service: HBASE and Component: HBASE_REGIONSERVER"
        },
Desired result: Stop command should have been passed successfuly


Diffs
-----

  
ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeatHandler.java
 fa633c1 
  
ambari-server/src/main/java/org/apache/ambari/server/metadata/ActionMetadata.java
 8a9799d 
  
ambari-server/src/test/java/org/apache/ambari/server/agent/TestHeartbeatHandler.java
 8c975d6 

Diff: https://reviews.apache.org/r/26139/diff/


Testing
-------

in progress


Thanks,

Dmitro Lisnichenko

Reply via email to