You are viewing a plain text version of this content. The canonical link for it is here.
Posted to common-dev@hadoop.apache.org by "dhruba borthakur (JIRA)" <ji...@apache.org> on 2007/09/13 11:00:36 UTC
[jira] Updated: (HADOOP-1887) ArrayIndexOutOfBoundsException with
trunk
[ https://issues.apache.org/jira/browse/HADOOP-1887?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
dhruba borthakur updated HADOOP-1887:
-------------------------------------
Attachment: zeroSizeFile.patch
Here is a patch that attaches a zero-size block when a file has not data in it. This prevents the Exception that you are seeing. It also fixes the problem where a zero size file get magically converted into directory when the namenode is restarted.
> ArrayIndexOutOfBoundsException with trunk
> -----------------------------------------
>
> Key: HADOOP-1887
> URL: https://issues.apache.org/jira/browse/HADOOP-1887
> Project: Hadoop
> Issue Type: Bug
> Components: dfs
> Reporter: Raghu Angadi
> Attachments: zeroSizeFile.patch
>
>
> How to reproduce :
> # Run a DFS cluster (single node is fine).
> # Start writing a file but do not close it : {{cat | bin/hadoop dfs -copyFromLocal - /dir/file}} does that.
> # goto /dir on Hadoop webui or do {{bin/hadoop fs -cat /dir/file}}.
> This is mostly related to HADOOP-1708.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.