|
@@ -51,7 +51,7 @@ public class TestDataDirs {
|
|
String locations1 = "[disk]/dir0,[DISK]/dir1,[sSd]/dir2,[disK]/dir3,[ram_disk]/dir4";
|
|
String locations1 = "[disk]/dir0,[DISK]/dir1,[sSd]/dir2,[disK]/dir3,[ram_disk]/dir4";
|
|
conf.set(DFS_DATANODE_DATA_DIR_KEY, locations1);
|
|
conf.set(DFS_DATANODE_DATA_DIR_KEY, locations1);
|
|
locations = DataNode.getStorageLocations(conf);
|
|
locations = DataNode.getStorageLocations(conf);
|
|
- assertThat(locations.size(), is(4));
|
|
|
|
|
|
+ assertThat(locations.size(), is(5));
|
|
assertThat(locations.get(0).getStorageType(), is(StorageType.DISK));
|
|
assertThat(locations.get(0).getStorageType(), is(StorageType.DISK));
|
|
assertThat(locations.get(0).getUri(), is(dir0.toURI()));
|
|
assertThat(locations.get(0).getUri(), is(dir0.toURI()));
|
|
assertThat(locations.get(1).getStorageType(), is(StorageType.DISK));
|
|
assertThat(locations.get(1).getStorageType(), is(StorageType.DISK));
|