Skip to content
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

[#796] bug:fix the issues of MetricReporter #797

Merged
merged 10 commits into from
Apr 7, 2023

Conversation

xianjingfeng
Copy link
Member

@xianjingfeng xianjingfeng commented Apr 5, 2023

What changes were proposed in this pull request?

  1. Support custom config keys defined in plugins
  2. Refactor the logic for load config file
  3. Fix some issues of metricReporter.

Why are the changes needed?

Metric reporter is unusable.
Fix: #796

Does this PR introduce any user-facing change?

No.

How was this patch tested?

UT and Manual testing

xianjingfeng added 2 commits April 5, 2023 13:27
#	common/src/main/java/org/apache/uniffle/common/config/RssBaseConf.java
#	server/src/main/java/org/apache/uniffle/server/ShuffleServer.java
#	server/src/test/java/org/apache/uniffle/server/ShuffleServerConfTest.java
@xianjingfeng xianjingfeng changed the title ] [#796] bug:fix the issues of MetricReporter Apr 5, 2023
@codecov-commenter
Copy link

codecov-commenter commented Apr 5, 2023

Codecov Report

Merging #797 (877ae67) into master (95c9eb4) will increase coverage by 1.34%.
The diff coverage is 13.63%.

@@             Coverage Diff              @@
##             master     #797      +/-   ##
============================================
+ Coverage     58.06%   59.41%   +1.34%     
+ Complexity     2072     2065       -7     
============================================
  Files           304      290      -14     
  Lines         14810    12831    -1979     
  Branches       1212     1214       +2     
============================================
- Hits           8600     7624     -976     
+ Misses         5720     4778     -942     
+ Partials        490      429      -61     
Impacted Files Coverage Δ
.../org/apache/uniffle/common/config/RssBaseConf.java 96.64% <0.00%> (+2.11%) ⬆️
...java/org/apache/uniffle/common/config/RssConf.java 29.93% <0.00%> (-2.48%) ⬇️
...rometheus/PrometheusPushGatewayMetricReporter.java 74.46% <0.00%> (ø)
.../apache/uniffle/coordinator/CoordinatorServer.java 58.33% <0.00%> (-0.90%) ⬇️
.../java/org/apache/uniffle/server/ShuffleServer.java 69.36% <0.00%> (+1.04%) ⬆️
.../uniffle/common/metrics/MetricReporterFactory.java 57.14% <100.00%> (ø)
...rg/apache/uniffle/coordinator/CoordinatorConf.java 98.78% <100.00%> (+1.06%) ⬆️
...a/org/apache/uniffle/server/ShuffleServerConf.java 99.43% <100.00%> (-0.02%) ⬇️

... and 14 files with indirect coverage changes

📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more

@xianjingfeng xianjingfeng marked this pull request as draft April 5, 2023 08:24
@xianjingfeng xianjingfeng marked this pull request as ready for review April 5, 2023 08:24
@xianjingfeng xianjingfeng reopened this Apr 5, 2023
@jerqi
Copy link
Contributor

jerqi commented Apr 5, 2023

You have become the committer. You have the authority to rerun the failure tests. You don't need to reopen the pr.

@@ -28,3 +28,4 @@ rss.coordinator.access.candidates.updateIntervalSec 1
rss.coordinator.access.loadChecker.serverNum.threshold 2
rss.coordinator.access.loadChecker.memory.percentage 20.0
rss.coordinator.dynamicClientConf.updateIntervalSec 1
plugin.custom.key v1
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we have a better format? We will have many plugins. What's type of plugin? The plugin is used for shuffle server , Coordinator or both. I can't get enough information.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could we have a better format? We will have many plugins. What's type of plugin? The plugin is used for shuffle server , Coordinator or both. I can't get enough information.

It is just for UT and it is not actually used.

@xianjingfeng
Copy link
Member Author

You have become the committer. You have the authority to rerun the failure tests. You don't need to reopen the pr.

I just merge master into this PR, and then i found some changes in #792 appear in the Files Changed of this PR. But it is normal that i merge this pr into master in my development environment. I don't know why, so i try to reopen this PR.

jerqi
jerqi previously approved these changes Apr 5, 2023
Copy link
Contributor

@jerqi jerqi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks @xianjingfeng

@@ -105,6 +105,7 @@ PrometheusPushGatewayMetricReporter is one of the built-in metrics reporter, whi

|Property Name|Default| Description |
|---|---|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
|rss.metrics.reporter.class|org.apache.uniffle.common.metrics.<br/>prometheus.PrometheusPushGatewayMetricReporter|The class of metrics reporter.|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nit: do you think is it necessary to include <br/> here?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because the class name is too long, the length occupied by this column is too long, and this table needs to be scrolled, making it inconvenient to view.

@xianjingfeng xianjingfeng merged commit 410dcc0 into apache:master Apr 7, 2023
@xianjingfeng
Copy link
Member Author

Merged, thanks @advancedxy @jerqi .
BTW, should we merge this pr into 0.7.0? @zuston

@xianjingfeng xianjingfeng deleted the issue_796_2 branch April 7, 2023 03:13
@zuston
Copy link
Member

zuston commented Apr 7, 2023

Merged, thanks @advancedxy @jerqi . BTW, should we merge this pr into 0.7.0? @zuston

It's OK for me. Let me cherry pick this.

@jerqi
Copy link
Contributor

jerqi commented Apr 12, 2023

@xianjingfeng There is conflict with branch 0.7. We can't cherry-pick directly. Could you raise a new pr for branch 0.7?

xianjingfeng added a commit to xianjingfeng/incubator-uniffle that referenced this pull request Apr 13, 2023
### What changes were proposed in this pull request?
Support custom config keys defined in plugins
Refactor the logic for load config file
Fix some issues of metricReporter.
### Why are the changes needed?
Metric reporter is unusable.
Fix: apache#796

### Does this PR introduce any user-facing change?
No.

### How was this patch tested?
UT and Manual testing
# Conflicts:
#	common/src/main/java/org/apache/uniffle/common/config/RssBaseConf.java
#	server/src/test/java/org/apache/uniffle/server/ShuffleServerConfTest.java
@xianjingfeng
Copy link
Member Author

@xianjingfeng There is conflict with branch 0.7. We can't cherry-pick directly. Could you raise a new pr for branch 0.7?

#821

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug] Failed to obtain constructor for MetricReporter
5 participants