----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/48691/ -----------------------------------------------------------
Review request for Ambari, Laszlo Puskas, Robert Nettleton, Sandor Magyari, Sumit Mohanty, and Sebastian Toader. Bugs: AMBARI-17219 https://issues.apache.org/jira/browse/AMBARI-17219 Repository: ambari Description ------- When a host is removed, it is necessary to have all the components stopped and removed, before the host itself can be deleted. If a host component is not stopped, it is not allowed to be removed, so the host itself cannot be removed. However if re-adding the host is tried, even if it is still in the cluster, a row is inserted to topology_host_info table. Multiple lines of the same host in that table is incorrect, so topology validation fails. Expected behaviour: if host is still in the cluster, a duplicate should not be able to be persisted in any of the related tables. Diffs ----- ambari-server/src/main/java/org/apache/ambari/server/topology/TopologyManager.java e3f5b49 ambari-server/src/test/java/org/apache/ambari/server/topology/TopologyManagerTest.java fd8653c Diff: https://reviews.apache.org/r/48691/diff/ Testing ------- Thanks, Daniel Gergely