From 81de229cf6d8c40f7417488a534af3f1dc71ebdc Mon Sep 17 00:00:00 2001 From: yijut2 <52221089+yijut2@users.noreply.github.com> Date: Tue, 12 Dec 2023 01:12:26 -0600 Subject: [PATCH] HDFS-17278. Fix order dependent flakiness in TestViewfsWithNfs3.java under hadoop-hdfs-nfs module (#6329). Contributed by Ruby. Reviewed-by: Xing Lin Signed-off-by: Ayush Saxena --- .../org/apache/hadoop/hdfs/nfs/nfs3/TestDFSClientCache.java | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hadoop-hdfs-project/hadoop-hdfs-nfs/src/test/java/org/apache/hadoop/hdfs/nfs/nfs3/TestDFSClientCache.java b/hadoop-hdfs-project/hadoop-hdfs-nfs/src/test/java/org/apache/hadoop/hdfs/nfs/nfs3/TestDFSClientCache.java index ba9d46e07d..d093f51b1b 100644 --- a/hadoop-hdfs-project/hadoop-hdfs-nfs/src/test/java/org/apache/hadoop/hdfs/nfs/nfs3/TestDFSClientCache.java +++ b/hadoop-hdfs-project/hadoop-hdfs-nfs/src/test/java/org/apache/hadoop/hdfs/nfs/nfs3/TestDFSClientCache.java @@ -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();