HADOOP-12849. TestSymlinkLocalFSFileSystem fails intermittently. Contributed by Mingliang Liu.
This commit is contained in:
parent
0f72da7e28
commit
798babf661
@ -1752,6 +1752,9 @@ Release 2.8.0 - UNRELEASED
|
|||||||
HADOOP-12716. KerberosAuthenticator#doSpnegoSequence use incorrect class to
|
HADOOP-12716. KerberosAuthenticator#doSpnegoSequence use incorrect class to
|
||||||
determine isKeyTab in JDK8. (Xiaoyu Yao via cnauroth)
|
determine isKeyTab in JDK8. (Xiaoyu Yao via cnauroth)
|
||||||
|
|
||||||
|
HADOOP-12849. TestSymlinkLocalFSFileSystem fails intermittently.
|
||||||
|
(Mingliang Liu via cnauroth)
|
||||||
|
|
||||||
Release 2.7.3 - UNRELEASED
|
Release 2.7.3 - UNRELEASED
|
||||||
|
|
||||||
INCOMPATIBLE CHANGES
|
INCOMPATIBLE CHANGES
|
||||||
|
@ -1373,7 +1373,8 @@ public void testSetTimesSymlinkToFile() throws IOException {
|
|||||||
long at = wrapper.getFileLinkStatus(link).getAccessTime();
|
long at = wrapper.getFileLinkStatus(link).getAccessTime();
|
||||||
// the local file system may not support millisecond timestamps
|
// the local file system may not support millisecond timestamps
|
||||||
wrapper.setTimes(link, 2000L, 3000L);
|
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(file).getModificationTime());
|
assertEquals(2000, wrapper.getFileStatus(file).getModificationTime());
|
||||||
assertEquals(3000, wrapper.getFileStatus(file).getAccessTime());
|
assertEquals(3000, wrapper.getFileStatus(file).getAccessTime());
|
||||||
}
|
}
|
||||||
@ -1407,6 +1408,7 @@ public void testSetTimesDanglingLink() throws IOException {
|
|||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
// Expected
|
// Expected
|
||||||
}
|
}
|
||||||
assertEquals(at, wrapper.getFileLinkStatus(link).getAccessTime());
|
assertTrue("The atime of symlink should not be lesser after setTimes()",
|
||||||
|
wrapper.getFileLinkStatus(link).getAccessTime() >= at);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user