Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 48F7D1148D for ; Tue, 29 Jul 2014 23:46:40 +0000 (UTC) Received: (qmail 74891 invoked by uid 500); 29 Jul 2014 23:46:39 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 74644 invoked by uid 500); 29 Jul 2014 23:46:39 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 74506 invoked by uid 99); 29 Jul 2014 23:46:39 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 29 Jul 2014 23:46:39 +0000 Date: Tue, 29 Jul 2014 23:46:39 +0000 (UTC) From: "Yi Liu (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-10886) CryptoCodec#getCodecclasses throws NPE when configurations not loaded. 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/HADOOP-10886?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14078631#comment-14078631 ] Yi Liu commented on HADOOP-10886: --------------------------------- Thanks Uma. The issue is caused by test case doesn't load the default configuration. [~clamb] also found org.apache.hadoop.hdfs.TestDistributedFileSystem.testAllWithNoXmlDefaults failed and was caused by same issue, please fix them together. > CryptoCodec#getCodecclasses throws NPE when configurations not loaded. > ---------------------------------------------------------------------- > > Key: HADOOP-10886 > URL: https://issues.apache.org/jira/browse/HADOOP-10886 > Project: Hadoop Common > Issue Type: Sub-task > Components: fs > Affects Versions: fs-encryption (HADOOP-10150 and HDFS-6134) > Reporter: Uma Maheswara Rao G > Assignee: Uma Maheswara Rao G > Fix For: 3.0.0 > > > There are some test cases which will not load the xml defaults. In this case, CryptoCodec#getCodecclasses will fail with NPE. > {noformat} > java.lang.NullPointerException: null > at com.google.common.base.Preconditions.checkNotNull(Preconditions.java:187) > at com.google.common.base.Splitter.split(Splitter.java:371) > at org.apache.hadoop.crypto.CryptoCodec.getCodecClasses(CryptoCodec.java:100) > at org.apache.hadoop.crypto.CryptoCodec.getInstance(CryptoCodec.java:54) > at org.apache.hadoop.crypto.CryptoCodec.getInstance(CryptoCodec.java:91) > at org.apache.hadoop.crypto.TestCryptoStreamsForLocalFS.init(TestCryptoStreamsForLocalFS.java:53) > {noformat} > https://builds.apache.org/job/Hadoop-fs-encryption-nightly/71/ -- This message was sent by Atlassian JIRA (v6.2#6252)