You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Hanisha Koneru (JIRA)" <ji...@apache.org> on 2016/11/11 18:07:59 UTC
[jira] [Comment Edited] (HDFS-11128) CreateEditsLog throws
NullPointerException
[ https://issues.apache.org/jira/browse/HDFS-11128?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15657684#comment-15657684 ]
Hanisha Koneru edited comment on HDFS-11128 at 11/11/16 6:07 PM:
-----------------------------------------------------------------
Thank you [~arpitagarwal] and [~brahmareddy]] for reviewing and committing the patch.
was (Author: hanishakoneru):
Thank you [~arpitagarwal] and [~brahma] for reviewing and committing the patch.
> 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, 3.0.0-alpha2
>
> 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-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org