HBASE-23816 [Flakey Test] TestExportSnapshotNoCluster.testSnapshotV2WithRefsExportFileSystemState(TestExportSnapshotNoCluster.java:91) Wrong FS!

This commit is contained in:
stack 2020-02-08 11:09:44 -08:00
parent 93c04e4f60
commit cdc98e906c
1 changed files with 3 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/** /*
* Licensed to the Apache Software Foundation (ASF) under one * Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file * or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information * distributed with this work for additional information
@ -50,7 +50,7 @@ public class TestExportSnapshotNoCluster {
private static final Logger LOG = LoggerFactory.getLogger(TestExportSnapshotNoCluster.class); private static final Logger LOG = LoggerFactory.getLogger(TestExportSnapshotNoCluster.class);
private final HBaseCommonTestingUtility testUtil = new HBaseCommonTestingUtility(); private HBaseCommonTestingUtility testUtil;
private FileSystem fs; private FileSystem fs;
private Path testDir; private Path testDir;
@ -66,6 +66,7 @@ public class TestExportSnapshotNoCluster {
@Before @Before
public void setUpBefore() throws Exception { public void setUpBefore() throws Exception {
this.testUtil = new HBaseCommonTestingUtility();
// Make sure testDir is on LocalFileSystem // Make sure testDir is on LocalFileSystem
testDir = testUtil.getDataTestDir().makeQualified(URI.create("file:///"), new Path("/")); testDir = testUtil.getDataTestDir().makeQualified(URI.create("file:///"), new Path("/"));
fs = testDir.getFileSystem(testUtil.getConfiguration()); fs = testDir.getFileSystem(testUtil.getConfiguration());