Repository: ambari
Updated Branches:
  refs/heads/branch-2.5 0b9ce3f06 -> ec8fc2bb2


AMBARI-20440. Concurrent odification of HostComponentDesiredState entity 
results in Blueprint based deployment stuck in PENDING state (magyari_sandor)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/ec8fc2bb
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/ec8fc2bb
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/ec8fc2bb

Branch: refs/heads/branch-2.5
Commit: ec8fc2bb2b3632a5e76b089fc98b95ce518de264
Parents: 0b9ce3f
Author: Sandor Magyari <[email protected]>
Authored: Tue Mar 14 18:41:42 2017 +0100
Committer: Sandor Magyari <[email protected]>
Committed: Thu Mar 16 14:18:16 2017 +0100

----------------------------------------------------------------------
 .../ambari/server/state/svccomphost/ServiceComponentHostImpl.java   | 1 +
 1 file changed, 1 insertion(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/ec8fc2bb/ambari-server/src/main/java/org/apache/ambari/server/state/svccomphost/ServiceComponentHostImpl.java
----------------------------------------------------------------------
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 6f01048..6e4979c 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
@@ -1513,6 +1513,7 @@ public class ServiceComponentHostImpl implements 
ServiceComponentHost {
   }
 
   @Override
+  @Transactional
   public void setRestartRequired(boolean restartRequired) {
     LOG.debug("Set RestartRequired on serviceName = {} componentName = {} 
hostName = {} to {}",
         getServiceName(), getServiceComponentName(), getHostName(), 
restartRequired);

Reply via email to