[ https://issues.apache.org/jira/browse/HDFS-11128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Brahma Reddy Battula updated HDFS-11128: ---------------------------------------- Resolution: Fixed Hadoop Flags: Reviewed Fix Version/s: 2.8.0 Status: Resolved (was: Patch Available) Committed to trunk,branch-2 and branch-2.8. Thanks [~hanishakoneru] for contributions and thanks to [~arpitagarwal] for review. > 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 > Fix For: 2.8.0 > > Attachments: HDFS-11128.000.patch > > > 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-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org