hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brahma Reddy Battula (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (HDFS-11128) CreateEditsLog throws NullPointerException
Date Fri, 11 Nov 2016 14:44:59 GMT

     [ https://issues.apache.org/jira/browse/HDFS-11128?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Brahma Reddy Battula updated HDFS-11128:
----------------------------------------
    Fix Version/s: 3.0.0-alpha2

> 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


Mime
View raw message