HDFS-13618. Fix TestDataNodeFaultInjector test failures on Windows. Contributed by Xiao Liang.
This commit is contained in:
parent
02322de3f9
commit
1e0d4b1c28
|
@ -118,7 +118,7 @@ public class TestDataNodeFaultInjector {
|
||||||
final MetricsDataNodeFaultInjector mdnFaultInjector) throws Exception {
|
final MetricsDataNodeFaultInjector mdnFaultInjector) throws Exception {
|
||||||
|
|
||||||
final Path baseDir = new Path(
|
final Path baseDir = new Path(
|
||||||
PathUtils.getTestDir(getClass()).getAbsolutePath(),
|
PathUtils.getTestDir(getClass()).getPath(),
|
||||||
GenericTestUtils.getMethodName());
|
GenericTestUtils.getMethodName());
|
||||||
final DataNodeFaultInjector oldDnInjector = DataNodeFaultInjector.get();
|
final DataNodeFaultInjector oldDnInjector = DataNodeFaultInjector.get();
|
||||||
DataNodeFaultInjector.set(mdnFaultInjector);
|
DataNodeFaultInjector.set(mdnFaultInjector);
|
||||||
|
|
Loading…
Reference in New Issue