YARN-10041. Should not use AbstractPath to create unix domain socket (#1771)

This commit is contained in:
Liu sheng 2019-12-27 19:20:15 +08:00 committed by Vinayakumar B
parent d80d86264d
commit 0fed874adf

View File

@ -20,7 +20,7 @@
import csi.v0.Csi;
import org.apache.commons.io.FileUtils;
import org.apache.hadoop.test.GenericTestUtils;
import com.google.common.io.Files;
import org.junit.AfterClass;
import org.junit.Assert;
import org.junit.Assume;
@ -42,7 +42,7 @@ public class TestCsiClient {
@BeforeClass
public static void setUp() throws IOException {
testRoot = GenericTestUtils.getTestDir("csi-test");
testRoot = Files.createTempDir();
File socketPath = new File(testRoot, "csi.sock");
FileUtils.forceMkdirParent(socketPath);
domainSocket = "unix://" + socketPath.getAbsolutePath();