hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From szets...@apache.org
Subject svn commit: r723884 - in /hadoop/core/branches/branch-0.18: CHANGES.txt src/hdfs/org/apache/hadoop/dfs/FSDataset.java
Date Fri, 05 Dec 2008 21:44:09 GMT
Author: szetszwo
Date: Fri Dec  5 13:44:09 2008
New Revision: 723884

URL: http://svn.apache.org/viewvc?rev=723884&view=rev
Log:
HADOOP-4778. Check for zero size block meta file when updating a block. (szetszwo)

Modified:
    hadoop/core/branches/branch-0.18/CHANGES.txt
    hadoop/core/branches/branch-0.18/src/hdfs/org/apache/hadoop/dfs/FSDataset.java

Modified: hadoop/core/branches/branch-0.18/CHANGES.txt
URL: http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.18/CHANGES.txt?rev=723884&r1=723883&r2=723884&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.18/CHANGES.txt (original)
+++ hadoop/core/branches/branch-0.18/CHANGES.txt Fri Dec  5 13:44:09 2008
@@ -78,6 +78,9 @@
     HADOOP-4717. Removal of default port# in NameNode.getUri() causes a
     map/reduce job failed to prompt temporary output. (hairong)
 
+    HADOOP-4778. Check for zero size block meta file when updating a block.
+    (szetszwo)
+
 Release 0.18.2 - 2008-11-03
 
   BUG FIXES

Modified: hadoop/core/branches/branch-0.18/src/hdfs/org/apache/hadoop/dfs/FSDataset.java
URL: http://svn.apache.org/viewvc/hadoop/core/branches/branch-0.18/src/hdfs/org/apache/hadoop/dfs/FSDataset.java?rev=723884&r1=723883&r2=723884&view=diff
==============================================================================
--- hadoop/core/branches/branch-0.18/src/hdfs/org/apache/hadoop/dfs/FSDataset.java (original)
+++ hadoop/core/branches/branch-0.18/src/hdfs/org/apache/hadoop/dfs/FSDataset.java Fri Dec
 5 13:44:09 2008
@@ -1165,6 +1165,9 @@
                             " metafile " + meta +
                             " does not exist on disk.");
     }
+    if (meta.length() == 0) {
+      throw new IOException("Block " + b + " metafile " + meta + " is empty.");
+    }
     long stamp = parseGenerationStamp(f, meta);
     if (stamp != b.getGenerationStamp()) {
       throw new IOException("Block " + b + 



Mime
View raw message