This is an automated email from the ASF dual-hosted git repository.
mpapirkovskyy pushed a commit to branch branch-2.7
in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/branch-2.7 by this push:
new 4a61abb AMBARI-25440. Server sets blueprint_provisioning_state for
component to finished before start command execution. (mpapirkovskyy) (#3148)
4a61abb is described below
commit 4a61abbe29c77ca3f101e7aea3767e11313eaf9b
Author: Myroslav Papirkovskyi <[email protected]>
AuthorDate: Wed Dec 4 13:26:43 2019 +0200
AMBARI-25440. Server sets blueprint_provisioning_state for component to
finished before start command execution. (mpapirkovskyy) (#3148)
---
.../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 6b8d1bc..dd34363 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);