hadoop-common-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cutt...@apache.org
Subject svn commit: r477411 - in /lucene/hadoop/trunk: CHANGES.txt src/java/org/apache/hadoop/dfs/DistributedFileSystem.java
Date Mon, 20 Nov 2006 23:47:26 GMT
Author: cutting
Date: Mon Nov 20 15:47:25 2006
New Revision: 477411

URL: http://svn.apache.org/viewvc?view=rev&rev=477411
Log:
HADOOP-447.  Fix getBlockSize(Path) to work with relative paths.  Contributed by Raghu.

Modified:
    lucene/hadoop/trunk/CHANGES.txt
    lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DistributedFileSystem.java

Modified: lucene/hadoop/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/CHANGES.txt?view=diff&rev=477411&r1=477410&r2=477411
==============================================================================
--- lucene/hadoop/trunk/CHANGES.txt (original)
+++ lucene/hadoop/trunk/CHANGES.txt Mon Nov 20 15:47:25 2006
@@ -97,6 +97,9 @@
 29. HADOOP-723.  In MapReduce, fix a race condition during the
     shuffle, which resulted in FileNotFoundExceptions.  (omalley via cutting)
 
+30. HADOOP-447.  In DFS, fix getBlockSize(Path) to work with relative
+    paths.  (Raghu Angadi via cutting)
+
 
 Release 0.8.0 - 2006-11-03
 

Modified: lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DistributedFileSystem.java
URL: http://svn.apache.org/viewvc/lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DistributedFileSystem.java?view=diff&rev=477411&r1=477410&r2=477411
==============================================================================
--- lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DistributedFileSystem.java (original)
+++ lucene/hadoop/trunk/src/java/org/apache/hadoop/dfs/DistributedFileSystem.java Mon Nov
20 15:47:25 2006
@@ -62,7 +62,7 @@
     }
     
     public long getBlockSize(Path f) throws IOException {
-      return dfs.getBlockSize(f);
+      return dfs.getBlockSize(makeAbsolute(f));
     }
     
     public short getDefaultReplication() {



Mime
View raw message