Author: omalley
Date: Tue Mar 8 05:55:05 2011
New Revision: 1079201
URL: http://svn.apache.org/viewvc?rev=1079201&view=rev
Log:
commit ef85de31480e1eaf8f0a822f1f7ad27270130bca
Author: Chris Douglas <cdouglas@apache.org>
Date: Thu Dec 2 17:16:31 2010 -0800
Fix compilation of contrib RAID after HDFS-1359; not tested
Modified:
hadoop/mapreduce/branches/yahoo-merge/src/contrib/raid/src/test/org/apache/hadoop/hdfs/TestRaidDfs.java
Modified: hadoop/mapreduce/branches/yahoo-merge/src/contrib/raid/src/test/org/apache/hadoop/hdfs/TestRaidDfs.java
URL: http://svn.apache.org/viewvc/hadoop/mapreduce/branches/yahoo-merge/src/contrib/raid/src/test/org/apache/hadoop/hdfs/TestRaidDfs.java?rev=1079201&r1=1079200&r2=1079201&view=diff
==============================================================================
--- hadoop/mapreduce/branches/yahoo-merge/src/contrib/raid/src/test/org/apache/hadoop/hdfs/TestRaidDfs.java
(original)
+++ hadoop/mapreduce/branches/yahoo-merge/src/contrib/raid/src/test/org/apache/hadoop/hdfs/TestRaidDfs.java
Tue Mar 8 05:55:05 2011
@@ -50,7 +50,7 @@ import org.apache.hadoop.hdfs.MiniDFSClu
import org.apache.hadoop.hdfs.protocol.ClientProtocol;
import org.apache.hadoop.hdfs.protocol.LocatedBlock;
import org.apache.hadoop.hdfs.protocol.LocatedBlocks;
-import org.apache.hadoop.hdfs.protocol.Block;
+import org.apache.hadoop.hdfs.protocol.ExtendedBlock;
import org.apache.hadoop.hdfs.DistributedFileSystem;
import org.apache.hadoop.hdfs.DistributedRaidFileSystem;
import org.apache.hadoop.raid.RaidNode;
@@ -421,7 +421,7 @@ public class TestRaidDfs extends TestCas
//
// Delete/Corrupt specified block of file
//
- public static void corruptBlock(Path file, Block blockNum,
+ public static void corruptBlock(Path file, ExtendedBlock blockNum,
int numDataNodes, boolean delete) throws IOException {
long id = blockNum.getBlockId();
@@ -461,7 +461,7 @@ public class TestRaidDfs extends TestCas
(numCorrupted + numDeleted) > 0);
}
- public static void corruptBlock(Path file, Block blockNum,
+ public static void corruptBlock(Path file, ExtendedBlock blockNum,
int numDataNodes, long offset) throws IOException {
long id = blockNum.getBlockId();
|