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

Fix incorrect metrics of event_queue_size and total_write_handler #411

Merged
merged 1 commit into from
Dec 13, 2022

Conversation

zuston
Copy link
Member

@zuston zuston commented Dec 13, 2022

What changes were proposed in this pull request?

Fix incorrect metrics of event_queue_size and total_write_handler

Why are the changes needed?

In current codebase, there are bugs on above metrics.

  1. The metric of total_write_handler won't desc when exception happened on flushing to file
  2. The metric of event_queue_size won't show the correct wait queue size. In original logic, if all events are waiting to be operated in flush thread pool, the flushQueue is always 0 and the metric value also will be 0. This is wrong.

Does this PR introduce any user-facing change?

No

How was this patch tested?

Don't need.

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 @zuston

@codecov-commenter
Copy link

codecov-commenter commented Dec 13, 2022

Codecov Report

Merging #411 (5713646) into master (d3aa5dc) will not change coverage.
The diff coverage is 100.00%.

@@            Coverage Diff            @@
##             master     #411   +/-   ##
=========================================
  Coverage     58.54%   58.54%           
  Complexity     1611     1611           
=========================================
  Files           195      195           
  Lines         11035    11035           
  Branches        966      966           
=========================================
  Hits           6460     6460           
  Misses         4195     4195           
  Partials        380      380           
Impacted Files Coverage Δ
...org/apache/uniffle/server/ShuffleFlushManager.java 82.90% <100.00%> (ø)

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

@zuston zuston merged commit 66c752f into apache:master Dec 13, 2022
@zuston
Copy link
Member Author

zuston commented Dec 13, 2022

Merged. Thanks @jerqi

@zuston zuston deleted the main-1 branch December 13, 2022 09:46
kaijchen pushed a commit that referenced this pull request Jan 17, 2023
### What changes were proposed in this pull request?

Fix incorrect metrics of event_queue_size and total_write_handler

### Why are the changes needed?
In current codebase, there are bugs on above metrics.

1. The metric of total_write_handler won't desc when exception happened on flushing to file
2. The metric of event_queue_size won't show the correct wait queue size. In original logic, if all events are waiting to be operated in flush thread pool, the flushQueue is always 0 and the metric value also will be 0. This is wrong.


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


### How was this patch tested?
Don't need.
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.

None yet

3 participants