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

Auto-fix common issues found by the DB consistency checker

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.5.0
    • ambari-server
    • None

    Description

      Proposed auto-fixes
      *Inconsistency for table hostcomponentdesiredstate and hostcomponentstate for stack upgrade.
      *Deleted services cause config table inconsistent
      *Primary key constrain issue from old Ambari version
      *Schema name in postgres is not ambari
      *Inconsistency view

      1. If there are missing states (service, component, host), etc, then automatically add one with a value of UNKNOWN or INSTALLED.
      2. If there are no selected configs, then select the latest ones (could be a bit dangerous)
      3. If there are multiple selected configs for the same type, then unselect all but the most recent (could be a bit dangerous)

      For dangerous options, by default fail with warning, and provide console option to perform fixes anyway (like the fsck does)

      Attachments

        1. AMBARI-18990.patch
          14 kB
          Dmitry Lysnichenko

        Issue Links

          Activity

            People

              dmitriusan Dmitry Lysnichenko
              dmitriusan Dmitry Lysnichenko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: