Return-Path: X-Original-To: apmail-ambari-issues-archive@minotaur.apache.org Delivered-To: apmail-ambari-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EDC6B1933A for ; Tue, 26 Apr 2016 18:25:13 +0000 (UTC) Received: (qmail 95451 invoked by uid 500); 26 Apr 2016 18:25:13 -0000 Delivered-To: apmail-ambari-issues-archive@ambari.apache.org Received: (qmail 95394 invoked by uid 500); 26 Apr 2016 18:25:13 -0000 Mailing-List: contact issues-help@ambari.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ambari.apache.org Delivered-To: mailing list issues@ambari.apache.org Received: (qmail 95162 invoked by uid 99); 26 Apr 2016 18:25:13 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Apr 2016 18:25:13 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 8D6752C1F64 for ; Tue, 26 Apr 2016 18:25:13 +0000 (UTC) Date: Tue, 26 Apr 2016 18:25:13 +0000 (UTC) From: "Hudson (JIRA)" To: issues@ambari.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (AMBARI-16100) Upgrade catalog 220 in not idempotent again MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/AMBARI-16100?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15258629#comment-15258629 ] Hudson commented on AMBARI-16100: --------------------------------- FAILURE: Integrated in Ambari-trunk-Commit #4741 (See [https://builds.apache.org/job/Ambari-trunk-Commit/4741/]) AMBARI-16100 Upgrade catalog 220 in not idempotent again (dsen) (dsen: [http://git-wip-us.apache.org/repos/asf?p=ambari.git&a=commit&h=4c4879e439a953fd7556fffa81704eae5e0bb048]) * ambari-server/src/main/java/org/apache/ambari/server/upgrade/UpgradeCatalog220.java * ambari-server/src/test/java/org/apache/ambari/server/upgrade/UpgradeCatalog220Test.java > 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 > > Attachments: AMBARI-16100.patch > > > 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)