HDFS-13673. TestNameNodeMetrics fails on Windows. Contributed by Zuoming Zhang.
This commit is contained in:
parent
b272b71095
commit
43d994e4a6
@ -71,6 +71,7 @@
|
||||
import org.apache.hadoop.hdfs.server.blockmanagement.BlockManager;
|
||||
import org.apache.hadoop.hdfs.server.blockmanagement.BlockManagerTestUtil;
|
||||
import org.apache.hadoop.hdfs.server.blockmanagement.DatanodeDescriptor;
|
||||
import org.apache.hadoop.hdfs.server.common.Storage;
|
||||
import org.apache.hadoop.hdfs.server.datanode.DataNode;
|
||||
import org.apache.hadoop.hdfs.server.datanode.DataNodeTestUtils;
|
||||
import org.apache.hadoop.hdfs.server.datanode.fsdataset.FsDatasetSpi;
|
||||
@ -271,7 +272,8 @@ public void testVolumeFailures() throws Exception {
|
||||
File dataDir = new File(fsVolume.getBaseURI());
|
||||
long capacity = fsVolume.getCapacity();
|
||||
volumeReferences.close();
|
||||
DataNodeTestUtils.injectDataDirFailure(dataDir);
|
||||
File storageDir = new File(dataDir, Storage.STORAGE_DIR_CURRENT);
|
||||
DataNodeTestUtils.injectDataDirFailure(storageDir);
|
||||
DataNodeTestUtils.waitForDiskError(dn, fsVolume);
|
||||
DataNodeTestUtils.triggerHeartbeat(dn);
|
||||
BlockManagerTestUtil.checkHeartbeat(bm);
|
||||
|
Loading…
Reference in New Issue
Block a user