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

Upgrade catalog 220 in not idempotent again

    XMLWordPrintableJSON

Details

    • Task
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.4.0
    • 2.4.0
    • ambari-upgrade
    • None

    Description

      UpgradeCatalog220#updateKerberosDescriptorArtifact

                  KerberosIdentityDescriptor hdfsIdentity = hdfsService.getIdentity("hdfs");
                  KerberosComponentDescriptor namenodeComponent = hdfsService.getComponent("NAMENODE");
                  hdfsIdentity.setName("hdfs");
                  hdfsService.removeIdentity("hdfs");
      

      in case of second run on same database we will have here NPE, coz that descriptor was already removed. Before using him, we need check that descriptor is present and is not null

      Attachments

        1. AMBARI-16100.patch
          3 kB
          Dmytro Sen

        Issue Links

          Activity

            People

              dsen Dmytro Sen
              dsen Dmytro Sen
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: