Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id D6E48200D75 for ; Sat, 30 Dec 2017 02:37:53 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id D5179160C39; Sat, 30 Dec 2017 01:37:53 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 31CA4160C35 for ; Sat, 30 Dec 2017 02:37:53 +0100 (CET) Received: (qmail 87072 invoked by uid 500); 30 Dec 2017 01:37:47 -0000 Mailing-List: contact common-commits-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-commits@hadoop.apache.org Received: (qmail 86617 invoked by uid 99); 30 Dec 2017 01:37:47 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 30 Dec 2017 01:37:47 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id DB7E3F17E2; Sat, 30 Dec 2017 01:37:45 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: asuresh@apache.org To: common-commits@hadoop.apache.org Date: Sat, 30 Dec 2017 01:38:01 -0000 Message-Id: In-Reply-To: <361e680b106a462d9eae2c581cf2dcc4@git.apache.org> References: <361e680b106a462d9eae2c581cf2dcc4@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [17/49] hadoop git commit: YARN-7032. [ATSv2] NPE while starting hbase co-processor when HBase authorization is enabled. Contributed by Rohith Sharma K S. archived-at: Sat, 30 Dec 2017 01:37:54 -0000 YARN-7032. [ATSv2] NPE while starting hbase co-processor when HBase authorization is enabled. Contributed by Rohith Sharma K S. Project: http://git-wip-us.apache.org/repos/asf/hadoop/repo Commit: http://git-wip-us.apache.org/repos/asf/hadoop/commit/d62932c3 Tree: http://git-wip-us.apache.org/repos/asf/hadoop/tree/d62932c3 Diff: http://git-wip-us.apache.org/repos/asf/hadoop/diff/d62932c3 Branch: refs/heads/YARN-6592 Commit: d62932c3b2fcacc81dc1f5048cdeb60fb0d38504 Parents: 41b5810 Author: Sunil G Authored: Wed Dec 20 11:31:15 2017 +0530 Committer: Sunil G Committed: Wed Dec 20 11:31:15 2017 +0530 ---------------------------------------------------------------------- .../server/timelineservice/storage/flow/FlowRunCoprocessor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/hadoop/blob/d62932c3/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase/src/main/java/org/apache/hadoop/yarn/server/timelineservice/storage/flow/FlowRunCoprocessor.java ---------------------------------------------------------------------- diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase/src/main/java/org/apache/hadoop/yarn/server/timelineservice/storage/flow/FlowRunCoprocessor.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase/src/main/java/org/apache/hadoop/yarn/server/timelineservice/storage/flow/FlowRunCoprocessor.java index 359eec9..96a7cf3 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase/src/main/java/org/apache/hadoop/yarn/server/timelineservice/storage/flow/FlowRunCoprocessor.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-timelineservice-hbase/src/main/java/org/apache/hadoop/yarn/server/timelineservice/storage/flow/FlowRunCoprocessor.java @@ -98,7 +98,9 @@ public class FlowRunCoprocessor extends BaseRegionObserver { if ((attributes != null) && (attributes.size() > 0)) { for (Map.Entry attribute : attributes.entrySet()) { Tag t = HBaseTimelineStorageUtils.getTagFromAttribute(attribute); - tags.add(t); + if (t != null) { + tags.add(t); + } } byte[] tagByteArray = Tag.fromList(tags); NavigableMap> newFamilyMap = new TreeMap<>( --------------------------------------------------------------------- To unsubscribe, e-mail: common-commits-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-commits-help@hadoop.apache.org