HDFS-17278. Fix order dependent flakiness in TestViewfsWithNfs3.java under hadoop-hdfs-nfs module (#6329). Contributed by Ruby.

Reviewed-by: Xing Lin <linxingnku@gmail.com>
Signed-off-by: Ayush Saxena <ayushsaxena@apache.org>
This commit is contained in:
yijut2 2023-12-12 01:12:26 -06:00 committed by GitHub
parent e91daae318
commit 81de229cf6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,9 +30,15 @@
import org.apache.hadoop.hdfs.DFSClient;
import org.apache.hadoop.hdfs.nfs.conf.NfsConfiguration;
import org.apache.hadoop.security.UserGroupInformation;
import org.junit.After;
import org.junit.Test;
public class TestDFSClientCache {
@After
public void cleanup() {
UserGroupInformation.reset();
}
@Test
public void testEviction() throws IOException {
NfsConfiguration conf = new NfsConfiguration();