HDFS-16616. remove use of org.apache.hadoop.util.Sets#4400
Merged
PrabhuJoseph merged 1 commit intoapache:trunkfrom Jun 22, 2022
Merged
HDFS-16616. remove use of org.apache.hadoop.util.Sets#4400PrabhuJoseph merged 1 commit intoapache:trunkfrom
PrabhuJoseph merged 1 commit intoapache:trunkfrom
Conversation
|
🎊 +1 overall
This message was automatically generated. |
remove non required removal of null checks and sanitory changes
|
💔 -1 overall
This message was automatically generated. |
|
💔 -1 overall
This message was automatically generated. |
Contributor
Author
|
Contributor
|
Thanks @Samrat002 for the patch. Looks good to me. WIll commit it tomorrow morning if no other comments. |
HarshitGupta11
pushed a commit
to HarshitGupta11/hadoop
that referenced
this pull request
Nov 28, 2022
Co-Authored by: Samrat Deb
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description of PR
https://issues.apache.org/jira/browse/HDFS-16616
As part of removing guava dependencies HADOOP-17115, HADOOP-17721, HADOOP-17722 and HADOOP-17720 are fixed,
Currently the code call util function to create HashSet and TreeSet in the repo . These function calls dont have much importance as it is calling internally new HashSet<> / new TreeSet<> from java.utils
This task is to clean up all the function calls to create sets which is redundant
Before moving to java8 , sets were created using guava functions and API , now since this is moved away and util code in the hadoop now looks like
These interfaces dont do anything much just a extra layer of function call
please refer to the task
https://issues.apache.org/jira/browse/HADOOP-17726
Can anyone review if this ticket add some value in the code.
Looking forward to some input/ thoughts . If not adding any value we can close it and not move forward with changes !
How was this patch tested?
For code changes: