-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HADOOP-19617 - [JDK17] Remove JUnit4 Dependency - HDFS. #7865
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It might help to defensively clean up state in TestRouterMountTableCacheRefresh.destroy()
by nulling cluster
, routerContext
, mountTableManager
, and curatorTestingServer
in a finally
block. This could prevent reference leaks across parameterized runs and reduce test flakiness.
- } catch (IOException e) {
- // do nothing
- }
+ } catch (IOException e) {
+ // do nothing
+ } finally {
+ cluster = null;
+ routerContext = null;
+ mountTableManager = null;
+ curatorTestingServer = null;
+ }
@zhtttylz Thank you for reviewing this PR! I have looked through the relevant code and believe this change is reasonable. |
🎊 +1 overall
This message was automatically generated. |
@ayushtkn Could you please review this PR? Thank you very much! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
+1, LGTM. Thanks @slfan1989 .
Description of PR
JIRA: HADOOP-19617 - [JDK17] Remove JUnit4 Dependency - HDFS.
How was this patch tested?
Junit Test.
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?