[
https://issues.apache.org/jira/browse/HADOOP-1875?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12533494
]
Owen O'Malley commented on HADOOP-1875:
---------------------------------------
It looks good, except that you should always call them exist/mkdir in the other
order:
if (fs.mkdir(path) || fs.exists(path)) { ... }
that way if the code is run in multiple threads, it never returns false.
> multiple dfs.client.buffer.dir directories are not treated as alternatives
> --------------------------------------------------------------------------
>
> Key: HADOOP-1875
> URL: https://issues.apache.org/jira/browse/HADOOP-1875
> Project: Hadoop
> Issue Type: Bug
> Components: fs
> Reporter: Christian Kunz
> Assignee: Hairong Kuang
> Priority: Blocker
> Fix For: 0.15.0
>
> Attachments: dirAllocator.patch, localDirAllocator1.patch
>
>
> When specifying multiple directories in the value for dfs.client.buffer.dir,
> jobs fail when the selected directory does not exist or is not writable.
> Correct behaviour should be to create the directory when it does not exist
> and fail over to an alternative directory when it is not writable.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.