Browse Source

HDFS-751. Fix TestCrcCorruption to pick up the correct datablocks to
corrupt. (dhruba)



git-svn-id: https://svn.apache.org/repos/asf/hadoop/hdfs/trunk@835534 13f79535-47bb-0310-9956-ffa450edef68

Dhruba Borthakur 15 years ago
parent
commit
652983ed3e
2 changed files with 5 additions and 2 deletions
  1. 3 0
      CHANGES.txt
  2. 2 2
      src/test/hdfs/org/apache/hadoop/hdfs/TestCrcCorruption.java

+ 3 - 0
CHANGES.txt

@@ -51,6 +51,9 @@ Trunk (unreleased changes)
     HDFS-611. Prevent DataNode heartbeat times from increasing even when
     the DataNode has many blocks to delete. (Zheng Shao via dhruba)
 
+    HDFS-751. Fix TestCrcCorruption to pick up the correct datablocks to
+    corrupt. (dhruba)
+
 Release 0.21.0 - Unreleased
 
   INCOMPATIBLE CHANGES

+ 2 - 2
src/test/hdfs/org/apache/hadoop/hdfs/TestCrcCorruption.java

@@ -90,7 +90,7 @@ public class TestCrcCorruption extends TestCase {
       // However, a client is alowed access to this block.
       //
       File data_dir = new File(System.getProperty("test.build.data"),
-                               "dfs/data/data1/current");
+                               "dfs/data/data1" + MiniDFSCluster.FINALIZED_DIR_NAME);
       assertTrue("data directory does not exist", data_dir.exists());
       File[] blocks = data_dir.listFiles();
       assertTrue("Blocks do not exist in data-dir", (blocks != null) && (blocks.length > 0));
@@ -147,7 +147,7 @@ public class TestCrcCorruption extends TestCase {
       // directory of the first datanode
       //
       data_dir = new File(System.getProperty("test.build.data"),
-                               "dfs/data/data2/current");
+                               "dfs/data/data2" + MiniDFSCluster.FINALIZED_DIR_NAME);
       assertTrue("data directory does not exist", data_dir.exists());
       blocks = data_dir.listFiles();
       assertTrue("Blocks do not exist in data-dir", (blocks != null) && (blocks.length > 0));