You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nutch.apache.org by cu...@apache.org on 2005/11/03 22:19:13 UTC

svn commit: r330641 - /lucene/nutch/branches/mapred/src/test/org/apache/nutch/fs/TestNutchFileSystem.java

Author: cutting
Date: Thu Nov  3 13:19:11 2005
New Revision: 330641

URL: http://svn.apache.org/viewcvs?rev=330641&view=rev
Log:
Fix to correctly handle zero-length files.

Modified:
    lucene/nutch/branches/mapred/src/test/org/apache/nutch/fs/TestNutchFileSystem.java

Modified: lucene/nutch/branches/mapred/src/test/org/apache/nutch/fs/TestNutchFileSystem.java
URL: http://svn.apache.org/viewcvs/lucene/nutch/branches/mapred/src/test/org/apache/nutch/fs/TestNutchFileSystem.java?rev=330641&r1=330640&r2=330641&view=diff
==============================================================================
--- lucene/nutch/branches/mapred/src/test/org/apache/nutch/fs/TestNutchFileSystem.java (original)
+++ lucene/nutch/branches/mapred/src/test/org/apache/nutch/fs/TestNutchFileSystem.java Thu Nov  3 13:19:11 2005
@@ -305,6 +305,8 @@
       long size = ((LongWritable)value).get();
       long seed = Long.parseLong(name);
 
+      if (size == 0) return;
+
       reporter.setStatus("opening " + name);
 
       NFSDataInputStream in = fs.open(new File(DATA_DIR, name));