[ 
https://issues.apache.org/jira/browse/HADOOP-12252?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14704337#comment-14704337
 ] 

zhihai xu commented on HADOOP-12252:
------------------------------------

Currently {{savedLocalDirs}} at AllocatorPerContext is initialized as ""(empty 
string). I think it seems reasonable to initialize {{dirDF}} and {{localDirs}} 
as zero length array to match the initial value of {{savedLocalDirs}} and fix 
the NPE. [~xgong], What do you think?

> LocalDirAllocator should not throw NPE with empty string configuration. 
> ------------------------------------------------------------------------
>
>                 Key: HADOOP-12252
>                 URL: https://issues.apache.org/jira/browse/HADOOP-12252
>             Project: Hadoop Common
>          Issue Type: Bug
>            Reporter: zhihai xu
>            Assignee: zhihai xu
>            Priority: Minor
>         Attachments: HADOOP-12252.000.patch
>
>
> LocalDirAllocator should not throw NPE with empty string configuration. When 
> an empty string is configured, {{LocalDirAllocator}} will throw NPE. It will 
> be better to throw IOException instead of NPE.



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

Reply via email to