Dmytro Sen created AMBARI-16100:
-----------------------------------
Summary: Upgrade catalog 220 in not idempotent again
Key: AMBARI-16100
URL: https://issues.apache.org/jira/browse/AMBARI-16100
Project: Ambari
Issue Type: Task
Components: ambari-upgrade
Affects Versions: 2.4.0
Reporter: Dmytro Sen
Assignee: Dmytro Sen
Priority: Critical
Fix For: 2.4.0
UpgradeCatalog220#updateKerberosDescriptorArtifact
{code}
KerberosIdentityDescriptor hdfsIdentity =
hdfsService.getIdentity("hdfs");
KerberosComponentDescriptor namenodeComponent =
hdfsService.getComponent("NAMENODE");
hdfsIdentity.setName("hdfs");
hdfsService.removeIdentity("hdfs");
{code}
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
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)