Repository: ambari Updated Branches: refs/heads/branch-2.5 c06f131e6 -> dc98bff91
AMBARI-19679. Dangling config-group hostmapping entries result in partial loading of config groups. (swagle) Project: http://git-wip-us.apache.org/repos/asf/ambari/repo Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/dc98bff9 Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/dc98bff9 Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/dc98bff9 Branch: refs/heads/branch-2.5 Commit: dc98bff9102bd42fa81a1966301c5f714821d761 Parents: c06f131 Author: Siddharth Wagle <[email protected]> Authored: Mon Jan 23 10:34:48 2017 -0800 Committer: Siddharth Wagle <[email protected]> Committed: Mon Jan 23 10:34:48 2017 -0800 ---------------------------------------------------------------------- .../apache/ambari/server/state/configgroup/ConfigGroupImpl.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/ambari/blob/dc98bff9/ambari-server/src/main/java/org/apache/ambari/server/state/configgroup/ConfigGroupImpl.java ---------------------------------------------------------------------- diff --git a/ambari-server/src/main/java/org/apache/ambari/server/state/configgroup/ConfigGroupImpl.java b/ambari-server/src/main/java/org/apache/ambari/server/state/configgroup/ConfigGroupImpl.java index fe1f338..03edcf8 100644 --- a/ambari-server/src/main/java/org/apache/ambari/server/state/configgroup/ConfigGroupImpl.java +++ b/ambari-server/src/main/java/org/apache/ambari/server/state/configgroup/ConfigGroupImpl.java @@ -172,8 +172,9 @@ public class ConfigGroupImpl implements ConfigGroup { if (host != null && hostEntity != null) { m_hosts.put(hostEntity.getHostId(), host); } - } catch (AmbariException e) { - LOG.warn("Host seems to be deleted but Config group mapping still exists !"); + } catch (Exception e) { + LOG.warn("Host {} seems to be deleted but Config group {} mapping " + + "still exists !", hostMappingEntity.getHostname(), configGroupName); LOG.debug("Host seems to be deleted but Config group mapping still exists !", e); } }
