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