YARN-1979. TestDirectoryCollection fails when the umask is unusual. (Contributed by Vinod Kumar Vavilapalli and Tsuyoshi OZAWA)
(cherry picked from commit c7cee9b455
)
This commit is contained in:
parent
34dd2d1d1c
commit
6483342a61
|
@ -11,6 +11,9 @@ Release 2.7.0 - UNRELEASED
|
||||||
|
|
||||||
IMPROVEMENTS
|
IMPROVEMENTS
|
||||||
|
|
||||||
|
YARN-1979. TestDirectoryCollection fails when the umask is unusual.
|
||||||
|
(Vinod Kumar Vavilapalli and Tsuyoshi OZAWA via junping_du)
|
||||||
|
|
||||||
OPTIMIZATIONS
|
OPTIMIZATIONS
|
||||||
|
|
||||||
BUG FIXES
|
BUG FIXES
|
||||||
|
|
|
@ -31,9 +31,9 @@ import org.apache.hadoop.fs.FileUtil;
|
||||||
import org.apache.hadoop.fs.Path;
|
import org.apache.hadoop.fs.Path;
|
||||||
import org.apache.hadoop.fs.permission.FsPermission;
|
import org.apache.hadoop.fs.permission.FsPermission;
|
||||||
import org.apache.hadoop.yarn.conf.YarnConfiguration;
|
import org.apache.hadoop.yarn.conf.YarnConfiguration;
|
||||||
import org.junit.AfterClass;
|
import org.junit.After;
|
||||||
import org.junit.Assert;
|
import org.junit.Assert;
|
||||||
import org.junit.BeforeClass;
|
import org.junit.Before;
|
||||||
import org.junit.Test;
|
import org.junit.Test;
|
||||||
|
|
||||||
public class TestDirectoryCollection {
|
public class TestDirectoryCollection {
|
||||||
|
@ -42,14 +42,14 @@ public class TestDirectoryCollection {
|
||||||
TestDirectoryCollection.class.getName()).getAbsoluteFile();
|
TestDirectoryCollection.class.getName()).getAbsoluteFile();
|
||||||
private static final File testFile = new File(testDir, "testfile");
|
private static final File testFile = new File(testDir, "testfile");
|
||||||
|
|
||||||
@BeforeClass
|
@Before
|
||||||
public static void setup() throws IOException {
|
public void setup() throws IOException {
|
||||||
testDir.mkdirs();
|
testDir.mkdirs();
|
||||||
testFile.createNewFile();
|
testFile.createNewFile();
|
||||||
}
|
}
|
||||||
|
|
||||||
@AfterClass
|
@After
|
||||||
public static void teardown() {
|
public void teardown() {
|
||||||
FileUtil.fullyDelete(testDir);
|
FileUtil.fullyDelete(testDir);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue