hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Uma Maheswara Rao G (JIRA)" <j...@apache.org>
Subject [jira] [Created] (HADOOP-10886) CryptoCodec#getCodecclasses throws NPE when configurations not loaded.
Date Wed, 23 Jul 2014 17:59:38 GMT
Uma Maheswara Rao G created HADOOP-10886:
--------------------------------------------

             Summary: 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


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)

Mime
View raw message