HDFS-13618. Fix TestDataNodeFaultInjector test failures on Windows. Contributed by Xiao Liang.

(cherry picked from commit a8e9ee3fdf3aa1b889dfdd3bade91ba754ed9ee1)
This commit is contained in:
Inigo Goiri 2018-05-25 09:10:32 -07:00
parent b0f7b0dfd5
commit 3b0da097a4
1 changed files with 1 additions and 1 deletions

View File

@ -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);