HADOOP-12603. TestSymlinkLocalFSFileContext#testSetTimesSymlinkToDir occasionally fail. Contributed by Wei-Chiu Chuang.
This commit is contained in:
parent
f657b54281
commit
fbb5868deb
@ -1592,6 +1592,9 @@ Release 2.8.0 - UNRELEASED
|
||||
HADOOP-12584. Disable browsing the static directory in HttpServer2.
|
||||
(Robert Kanter via aajisaka)
|
||||
|
||||
HADOOP-12603. TestSymlinkLocalFSFileContext#testSetTimesSymlinkToDir
|
||||
occasionally fail. (Wei-Chiu Chuang via cnauroth)
|
||||
|
||||
Release 2.7.3 - UNRELEASED
|
||||
|
||||
INCOMPATIBLE CHANGES
|
||||
|
@ -1388,7 +1388,8 @@ public void testSetTimesSymlinkToDir() throws IOException {
|
||||
long at = wrapper.getFileLinkStatus(link).getAccessTime();
|
||||
// the local file system may not support millisecond timestamps
|
||||
wrapper.setTimes(link, 2000L, 3000L);
|
||||
assertEquals(at, wrapper.getFileLinkStatus(link).getAccessTime());
|
||||
assertTrue("The atime of symlink should not be lesser after setTimes()",
|
||||
wrapper.getFileLinkStatus(link).getAccessTime() >= at);
|
||||
assertEquals(2000, wrapper.getFileStatus(dir).getModificationTime());
|
||||
assertEquals(3000, wrapper.getFileStatus(dir).getAccessTime());
|
||||
}
|
||||
|
@ -223,13 +223,13 @@ public void testCreateLinkToDot() throws IOException {
|
||||
|
||||
@Override
|
||||
public void testSetTimesSymlinkToFile() throws IOException {
|
||||
assumeTrue(!Path.WINDOWS);
|
||||
assumeTrue(!Shell.WINDOWS && !Shell.SOLARIS);
|
||||
super.testSetTimesSymlinkToFile();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void testSetTimesSymlinkToDir() throws IOException {
|
||||
assumeTrue(!Path.WINDOWS);
|
||||
assumeTrue(!Path.WINDOWS && !Shell.SOLARIS);
|
||||
super.testSetTimesSymlinkToDir();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user