You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by wu...@apache.org on 2022/11/17 08:34:08 UTC
[ambari] branch trunk updated: AMBARI-25440: Server sets blueprint_provisioning_state for component to finished before start command execution (#3516)
This is an automated email from the ASF dual-hosted git repository.
wuzhiguo pushed a commit to branch trunk
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push:
new e8fe72e145 AMBARI-25440: Server sets blueprint_provisioning_state for component to finished before start command execution (#3516)
e8fe72e145 is described below
commit e8fe72e145159b0ddb8dfb53709b0bfa4154841f
Author: Zhiguo Wu <wu...@apache.org>
AuthorDate: Thu Nov 17 16:34:02 2022 +0800
AMBARI-25440: Server sets blueprint_provisioning_state for component to finished before start command execution (#3516)
---
.../ambari/server/state/svccomphost/ServiceComponentHostImpl.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/ambari-server/src/main/java/org/apache/ambari/server/state/svccomphost/ServiceComponentHostImpl.java b/ambari-server/src/main/java/org/apache/ambari/server/state/svccomphost/ServiceComponentHostImpl.java
index 441d55740f..447431ba72 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/state/svccomphost/ServiceComponentHostImpl.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/state/svccomphost/ServiceComponentHostImpl.java
@@ -1020,7 +1020,7 @@ public class ServiceComponentHostImpl implements ServiceComponentHost {
STOMPUpdatePublisher.publish(new HostComponentsUpdateEvent(Collections.singletonList(
HostComponentUpdate.createHostComponentStatusUpdate(stateEntity, oldState))));
}
- if (event.getType().equals(ServiceComponentHostEventType.HOST_SVCCOMP_START)) {
+ if (event.getType().equals(ServiceComponentHostEventType.HOST_SVCCOMP_STARTED)) {
HostComponentDesiredStateEntity desiredStateEntity = getDesiredStateEntity();
if (desiredStateEntity.getBlueprintProvisioningState() == BlueprintProvisioningState.IN_PROGRESS) {
desiredStateEntity.setBlueprintProvisioningState(BlueprintProvisioningState.FINISHED);
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@ambari.apache.org
For additional commands, e-mail: commits-help@ambari.apache.org