JiaLiangC opened a new pull request, #3655:
URL: https://github.com/apache/ambari/pull/3655

   ## What changes were proposed in this pull request?
   
   AgentCommandsPublisher can't get clusterId from execution command, cause 
it's not set in  addGenericExecutionCommand( Stage.java) method.
   
   Why did the action  succeed in the end after throw a NPE error? Because it 
finally reload it from database if find cluster id is not set properlly.
   
   how to fix:
    all the Stage construction method  include the cluster id ,so just set in 
the addGenericExecutionCommand
   
   ## How was this patch tested?
   
   (Please explain how this patch was tested. Ex: unit tests, manual tests)
   (If this patch involves UI changes, please attach a screen-shot; otherwise, 
remove this)
   
   Please review [Ambari Contributing 
Guide](https://cwiki.apache.org/confluence/display/AMBARI/How+to+Contribute) 
before opening a pull request.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@ambari.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@ambari.apache.org
For additional commands, e-mail: dev-h...@ambari.apache.org

Reply via email to