You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ambari.apache.org by GitBox <gi...@apache.org> on 2021/02/23 22:40:56 UTC

[GitHub] [ambari] hapylestat commented on a change in pull request #3287: AMBARI-25620 Ambari Server STOP command on a node might fail because …

hapylestat commented on a change in pull request #3287:
URL: https://github.com/apache/ambari/pull/3287#discussion_r581442087



##########
File path: ambari-server/src/main/java/org/apache/ambari/server/state/cluster/ClusterImpl.java
##########
@@ -2199,6 +2201,18 @@ public Long getNextConfigVersion(String type) {
         Enum<?> currentState = e.getCurrentState();
         Enum<?> failedEvent = e.getEvent();
 
+        if (serviceComponent != null && serviceComponentHost != null
+            && (currentState == State.STARTED || currentState == State.STARTING)
+            && failedEvent == ServiceComponentHostEventType.HOST_SVCCOMP_INSTALL
+            && serviceComponentName.equals("NODEMANAGER") && serviceComponentHost

Review comment:
       The logic should be generalized without special treatment for any pre-defined component




----------------------------------------------------------------
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.

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