Hanisha Koneru created HDFS-11128:
-------------------------------------

             Summary: CreateEditsLog throws NullPointerException
                 Key: HDFS-11128
                 URL: https://issues.apache.org/jira/browse/HDFS-11128
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: hdfs
            Reporter: Hanisha Koneru
            Assignee: Hanisha Koneru


When trying to create edit logs through CreateEditsLog, the following exception 
is encountered.
{quote}
Exception in thread "main" java.lang.NullPointerException
        at java.io.File.<init>(File.java:415)
        at 
org.apache.hadoop.hdfs.server.namenode.NNStorage.getStorageDirectory(NNStorage.java:343)
        at 
org.apache.hadoop.hdfs.server.namenode.FSImageTestUtil.createStandaloneEditLog(FSImageTestUtil.java:200)
        at 
org.apache.hadoop.hdfs.server.namenode.CreateEditsLog.main(CreateEditsLog.java:205)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:498)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:239)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:153)
{quote}

This happens as Mockito is unable to access package protected method 
_NNStorage#getStorageDirectory_
We need to change the access of this method to _public_



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-h...@hadoop.apache.org

Reply via email to