What means log DIR* NameSystem.completeFile: failed to complete... ?

2010-04-06 Thread Al Lias
Hi all,

this warning is written in FSFileSystem.java/completeFileInternal(). It
makes the calling code in NameNode.java throwing an IOException.

FSFileSystem.java
...
if (fileBlocks == null ) {
  NameNode.stateChangeLog.warn(
DIR* NameSystem.completeFile: 
+ failed to complete  + src
+  because dir.getFileBlocks() is null  +
   and pendingFile is  +
  ((pendingFile == null) ? null :
(from  + pendingFile.getClientMachine()))
  );
...

What is the meaning of this warning? Any Idea what could have gone wrong
in such a case?

(This popped up through hbase, but as this code is in HDFS, I am asking
this list)

Thx

Al


Re: What means log DIR* NameSystem.completeFile: failed to complete... ?

2010-04-06 Thread Todd Lipcon
Hi Al,

Usually this indicates that the file was renamed or deleted while it was
still being created by the client. Unfortunately it's not the most
descriptive :)

-Todd

On Tue, Apr 6, 2010 at 5:36 AM, Al Lias al.l...@gmx.de wrote:

 Hi all,

this warning is written in FSFileSystem.java/completeFileInternal().
 It
 makes the calling code in NameNode.java throwing an IOException.

 FSFileSystem.java
 ...
 if (fileBlocks == null ) {
  NameNode.stateChangeLog.warn(
DIR* NameSystem.completeFile: 
+ failed to complete  + src
+  because dir.getFileBlocks() is null  +
   and pendingFile is  +
  ((pendingFile == null) ? null :
(from  + pendingFile.getClientMachine()))
  );
 ...

 What is the meaning of this warning? Any Idea what could have gone wrong
 in such a case?

 (This popped up through hbase, but as this code is in HDFS, I am asking
 this list)

 Thx

Al




-- 
Todd Lipcon
Software Engineer, Cloudera