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

[#2298] fix(server): Correct the metric of grpc_get_local_shuffle_data_process_latency #2299

Merged
merged 1 commit into from
Dec 18, 2024

Conversation

zuston
Copy link
Member

@zuston zuston commented Dec 18, 2024

What changes were proposed in this pull request?

Correct the metric of grpc_get_local_shuffle_data_process_latency

Why are the changes needed?

fix #2298

Does this PR introduce any user-facing change?

No.

How was this patch tested?

Needn't

GetLocalShuffleDataResponse.newBuilder()
.setStatus(status.toProto())
.setRetMsg(msg)
.setData(UnsafeByteOperations.unsafeWrap(sdr.getData()))
Copy link
Member Author

Choose a reason for hiding this comment

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

the operation of sdr.getData() will cost too much time, so it should be scoped into the metrics recording

Copy link
Contributor

Choose a reason for hiding this comment

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

Got it.

@zuston zuston requested a review from jerqi December 18, 2024 02:48
@codecov-commenter
Copy link

codecov-commenter commented Dec 18, 2024

Codecov Report

Attention: Patch coverage is 0% with 5 lines in your changes missing coverage. Please review.

Project coverage is 52.34%. Comparing base (44bfd0d) to head (f914e6c).
Report is 4 commits behind head on master.

Files with missing lines Patch % Lines
...pache/uniffle/server/ShuffleServerGrpcService.java 0.00% 5 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             master    #2299      +/-   ##
============================================
+ Coverage     52.27%   52.34%   +0.07%     
+ Complexity     3569     3362     -207     
============================================
  Files           543      513      -30     
  Lines         29797    27584    -2213     
  Branches       2779     2593     -186     
============================================
- Hits          15575    14439    -1136     
+ Misses        13227    12205    -1022     
+ Partials        995      940      -55     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Copy link

Test Results

 2 966 files  ±0   2 966 suites  ±0   6h 30m 55s ⏱️ + 4m 56s
 1 097 tests ±0   1 095 ✅ ±0   2 💤 ±0  0 ❌ ±0 
13 750 runs  ±0  13 720 ✅ ±0  30 💤 ±0  0 ❌ ±0 

Results for commit f914e6c. ± Comparison against base commit 258db12.

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.

@zuston zuston merged commit 8c55030 into apache:master Dec 18, 2024
43 checks passed
zuston pushed a commit to zuston/incubator-uniffle that referenced this pull request Dec 23, 2024
jerqi pushed a commit that referenced this pull request Jan 1, 2025
…a_process_latency (#2299)

### What changes were proposed in this pull request?

Correct the metric of grpc_get_local_shuffle_data_process_latency

### Why are the changes needed?

fix #2298

### Does this PR introduce _any_ user-facing change?

No.

### How was this patch tested?

Needn't


Co-authored-by: Junfan Zhang <zhangjunfan@qiyi.com>
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] Incorrect grpc metric of grpc_get_local_shuffle_data_process_latency
3 participants