You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Todd Lipcon (JIRA)" <ji...@apache.org> on 2010/03/23 07:28:27 UTC

[jira] Created: (HDFS-1062) Improve error messages for failed completeFile

Improve error messages for failed completeFile
----------------------------------------------

                 Key: HDFS-1062
                 URL: https://issues.apache.org/jira/browse/HDFS-1062
             Project: Hadoop HDFS
          Issue Type: Improvement
          Components: hdfs client, name-node
            Reporter: Todd Lipcon


In practice I often see users confused by the cryptic error message "failed to complete PATH because dir.getFileBlocks() is null and pendingFile is null" (I wonder why!) The most common cause of this seems to be that another user deleted the file (or its containing directory) while the writer was in progress.

We should at least improve the error message on the NN side. Even better would be to expose the error message through the IOException passed over the RPC boundary to the client.

Including a message like "(another client may have removed the file or its containing directory)" should do the trick.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.