Uploaded image for project: 'Ambari'
  1. Ambari
  2. AMBARI-17219

Removing and re-adding hosts makes database inconsitent

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • None
    • 2.4.0
    • ambari-server
    • None

    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.

      Attachments

        1. AMBARI-17219_trunk_branch-2.4.patch
          10 kB
          Daniel Gergely
        2. AMBARI-17219_2.2-next.patch
          10 kB
          Daniel Gergely

        Issue Links

          Activity

            People

              dgergely Daniel Gergely
              dgergely Daniel Gergely
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: