-
Notifications
You must be signed in to change notification settings - Fork 9k
HDFS-12431. [JDK17] Upgrade JUnit from 4 to 5 in hadoop-hdfs Part3. #7626
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. |
6db7f01
to
b78487a
Compare
💔 -1 overall
This message was automatically generated. |
b78487a
to
cd1f9d3
Compare
cd1f9d3
to
0cf3676
Compare
🎊 +1 overall
This message was automatically generated. |
🎊 +1 overall
This message was automatically generated. |
|
||
import static org.apache.hadoop.fs.CommonConfigurationKeysPublic.HADOOP_RPC_PROTECTION; | ||
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_ENCRYPT_DATA_OVERWRITE_DOWNSTREAM_DERIVED_QOP_KEY; | ||
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_NAMENODE_SERVICE_RPC_ADDRESS_KEY; | ||
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_NAMENODE_SEND_QOP_ENABLED; | ||
import static org.apache.hadoop.hdfs.DFSConfigKeys.DFS_NAMENODE_RPC_ADDRESS_AUXILIARY_KEY; | ||
import static org.apache.hadoop.hdfs.client.HdfsClientConfigKeys.DFS_ENCRYPT_DATA_OVERWRITE_DOWNSTREAM_NEW_QOP_KEY; | ||
import static org.junit.Assert.*; | ||
import static org.junit.jupiter.api.Assertions.*; |
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.
Can we expand *
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.
Thanks for the feedback! I'll update the code as soon as possible.
🎊 +1 overall
This message was automatically generated. |
@zhtttylz Thanks for the contribution! @jojochuang @szetszwo @ayushtkn @cnauroth Could you help review this PR? Thank you very much! Since this change involves HDFS unit tests, I'd like to hear your thoughts. |
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 the change looks good.
Just a question: Could we remove the junit 4 dependency?
Sugguestions for the future PRs:
- The PR is very large -- the patch files is > 200KB. It took me a few days to review it. I would suggest splitting it into 4 or more PRs, 50KB each. It will improve the turn around time.
- For such a large PR, please don't change indentations. It becomes a never ending reviewing.
I do appreciate your efforts!
@@ -241,6 +241,26 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd"> | |||
<groupId>org.apache.hadoop</groupId> | |||
<artifactId>hadoop-annotations</artifactId> | |||
</dependency> | |||
<dependency> |
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.
Has this pr upraded all the junit 4 cases? If yes, we should remove the junit 4 dependency.
@zhtttylz , it seems that you are not the current assignee HDFS-12431. If it is the case, could you put a comment on it? Then, we could assign this to you and the resolve the JIRA. Cc @slfan1989 |
@szetszwo Thank you very much for reviewing the code! I have assigned HDFS-12431 to Hualong Zhang. |
@szetszwo Thank you very much for reviewing the code and providing valuable feedback! We greatly appreciate your efforts. Currently, the HDFS project contains over 790 unit tests, and we aim to find a reasonable balance between the size of the PRs and what is acceptable for reviewers. To control the number of PRs, we are currently bundling them in batches of 50 classes, which means we will need to submit at least 15 PRs. If we don’t do this, it could result in more PRs related to the HDFS upgrade, and for users who require backporting, the large number of PRs could be less friendly. This process is indeed challenging, and we don't want the JUnit 4 upgrade to become too fragmented. Your help is especially important for the HDFS module. We may need to wait until the entire HDFS module is upgraded before we can remove the JUnit 4 dependency. cc: @zhtttylz |
Thanks @szetszwo @slfan1989 help review and merged! |
Description of PR
JIRA:HDFS-12431. Upgrade JUnit from 4 to 5 in hadoop-hdfs Part3.
How was this patch tested?
Junit Test.
For code changes:
LICENSE
,LICENSE-binary
,NOTICE-binary
files?