-
Notifications
You must be signed in to change notification settings - Fork 148
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
[#983] improvement(tez): Optimize tez client delivery configuration #985
Conversation
Codecov Report
@@ Coverage Diff @@
## master #985 +/- ##
============================================
+ Coverage 53.22% 54.58% +1.35%
- Complexity 2507 2512 +5
============================================
Files 376 356 -20
Lines 20535 18161 -2374
Branches 1758 1764 +6
============================================
- Hits 10930 9913 -1017
+ Misses 8920 7630 -1290
+ Partials 685 618 -67
... and 24 files with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
Should |
OK! modification is Done! |
} | ||
|
||
public static Configuration filterRssConf(Configuration extraConf) { | ||
Configuration conf = new Configuration(); |
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.
先清空默认配置conf.clear()
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.
Great catch! I do it like below. It is more clear.
Configuration conf = new Configuration(false);
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 think still need to call conf.clear(). Even if Configuration(false), will still load some configurations
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.
After test, it works without clear
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.
LGTM, thanks @zhengchenyu @baitian77
What changes were proposed in this pull request?
Three improvement about configuration will be done in this issue.
Why are the changes needed?
How was this patch tested?
integration test, unit test, test in yarn cluster, test in tez local mode.