-
Notifications
You must be signed in to change notification settings - Fork 8.8k
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
HDFS-16695. Improve code with Lambda in org.apache.hadoop.hdfs.servernamenode package #4668
base: trunk
Are you sure you want to change the base?
Conversation
return false; | ||
} | ||
return true; | ||
return lastINode != null && lastINode.getId() == zoneId; |
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.
I'm not sure this is more readable than what we had.
This is a massive PR. |
Personally, I think this optimization should still be valuable, I hope that the submitted pr is not at the class level, at least at the moudle level. |
I wouldn't go for one per class but maybe subpackage. |
💔 -1 overall
This message was automatically generated. |
I understand your suggestion that the lambda should be tuned with other code modifications, not just the lambda code. |
Thanks @goiri @slfan1989 for your review.
|
@goiri @slfan1989 Sir, I have updated this patch, please help me review it. Thanks
|
💔 -1 overall
This message was automatically generated. |
💔 -1 overall
This message was automatically generated. |
@goiri @slfan1989 Master, I have rebased this patch based on the latest trunk. Can you help me merge this PR into trunk? |
💔 -1 overall
This message was automatically generated. |
Description of PR
Improve Code with Lambda in org.apahce.hadoop.hdfs.server.namenode package.
For example:
Current logic:
Improved Code with Lambda: