You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ol...@apache.org on 2018/07/19 09:34:44 UTC

[ambari] branch branch-2.7 updated: AMBARI-24254. ADDENDUM: flag infra-solr instances to restart after upgrade (#1736)

This is an automated email from the ASF dual-hosted git repository.

oleewere 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 4a87b38  AMBARI-24254. ADDENDUM: flag infra-solr instances to restart after upgrade (#1736)
4a87b38 is described below

commit 4a87b38aa5dbfb9e45d12de49e6882ed2e12709e
Author: Olivér Szabó <ol...@gmail.com>
AuthorDate: Thu Jul 19 11:34:42 2018 +0200

    AMBARI-24254. ADDENDUM: flag infra-solr instances to restart after upgrade (#1736)
---
 .../main/java/org/apache/ambari/server/upgrade/UpgradeCatalog270.java  | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog270.java b/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog270.java
index 8659082..bdeebfa 100644
--- a/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog270.java
+++ b/ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog270.java
@@ -1111,6 +1111,9 @@ public class UpgradeCatalog270 extends AbstractUpgradeCatalog {
         hostComponentDesiredStateDAO.remove(hostComponentDesiredStateEntity);
         entityManager.detach(hostComponentDesiredStateEntity);
         hostComponentDesiredStateEntity.setServiceName(AMBARI_INFRA_NEW_NAME);
+        if ("INFRA_SOLR".equals(hostComponentDesiredStateEntity.getComponentName())) {
+          hostComponentDesiredStateEntity.setRestartRequired(true);
+        }
       }
 
       clusterServiceEntity.getServiceComponentDesiredStateEntities().clear();