[
https://issues.apache.org/jira/browse/HDFS-13795?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16572107#comment-16572107
]
Virajith Jalaparti edited comment on HDFS-13795 at 8/7/18 6:31 PM:
-------------------------------------------------------------------
Thanks for taking a look [~ehiggs]. I agree. In the current implementation, the
Namenode doesn't start as {{startAliasMapServerIfNecessary}} throws an
exception. However, the NPE occurs when {{Namenode#stop}} is called (in
{{InMemoryLevelDBAliasMapServer#close}}).
Posting an updated patch [^HDFS-13795.002.patch] which reverts the changes to
{{Namenode.java}} and adds an additional test in
{{TestInMemoryLevelDBAliasMapClient}}.
was (Author: virajith):
Thanks for taking a look [~ehiggs]. I agree. In the current implementation, the
Namenode doesn't start as {{startAliasMapServerIfNecessary}} throws an
exception. However, the NPE occurs when {{Namenode#stop}} is called (in
{{InMemoryLevelDBAliasMapServer#close}}).
Posting an updated patch [^HDFS-13795.002.patch] which reverts the changes to
{{Namenode.java}}
> Fix potential NPE in InMemoryLevelDBAliasMapServer
> --------------------------------------------------
>
> Key: HDFS-13795
> URL: https://issues.apache.org/jira/browse/HDFS-13795
> Project: Hadoop HDFS
> Issue Type: Bug
> Reporter: Virajith Jalaparti
> Assignee: Virajith Jalaparti
> Priority: Major
> Attachments: HDFS-13795.001.patch, HDFS-13795.002.patch
>
>
> Namenode fails to stop correctly due to NPE in InMemoryAliasMapServer, when
> it is configured incorrectly.
> {code:java}
> java.lang.NullPointerException
> at
> org.apache.hadoop.hdfs.server.aliasmap.InMemoryLevelDBAliasMapServer.close(InMemoryLevelDBAliasMapServer.java:149)
> at
> org.apache.hadoop.hdfs.server.namenode.NameNode.stop(NameNode.java:1023)
> {code}
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]