Sfoglia il codice sorgente

commit 0673ee66c8fead32b0d5b28958d39974ee5e31ff
Author: Chris Douglas <cdouglas@apache.org>
Date: Tue Jul 20 23:34:57 2010 -0700

Fix failing unit test


git-svn-id: https://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-patches@1077574 13f79535-47bb-0310-9956-ffa450edef68

Owen O'Malley 14 anni fa
parent
commit
a2afca4a50

+ 2 - 4
src/test/org/apache/hadoop/hdfs/server/datanode/TestDataNodeVolumeFailure.java

@@ -248,10 +248,8 @@ public class TestDataNodeVolumeFailure extends TestCase{
 
     blockReader = 
       DFSClient.BlockReader.newBlockReader(s, targetAddr.toString() + ":" + 
-          block.getBlockId(), 
-          block.getBlockId(), 
-          block.getGenerationStamp(), 
-          0, -1, 4096);
+          block.getBlockId(), block.getBlockId(), lblock.getBlockToken(),
+          block.getGenerationStamp(), 0, -1, 4096);
 
     // nothing - if it fails - it will throw and exception
   }