Skip to content

[improve] [client] support aggregate metrics for partition topic stats - #18214

Merged
codelipenghui merged 1 commit into
apache:masterfrom
rdhabalia:part_agg
Oct 27, 2022
Merged

codelipenghui merged 1 commit into
apache:masterfrom
rdhabalia:part_agg

Conversation

@rdhabalia

@rdhabalia rdhabalia commented Oct 26, 2022 •

Copy link
Copy Markdown
Contributor

Motivation

Right now, Producer client stats returns incorrect rate values for partition topic instead giving aggregate value across all partitions. Right now it always returns 0 but it can be aggregated for partition topic and give to client.

Modifications

Update aggregate rate value for producer stats.

Verifying this change

  • Make sure that the change passes the CI checks.

(Please pick either of the following options)

This change is a trivial rework / code cleanup without any test coverage.

(or)

This change is already covered by existing tests, such as (please describe tests).

(or)

This change added tests and can be verified as follows:

(example:)

  • Added integration tests for end-to-end deployment with large payloads (10MB)
  • Extended integration test for recovery after broker failure

Does this pull request potentially affect one of the following parts:

If the box was checked, please highlight the changes

  • Dependencies (add or upgrade a dependency)
  • The public API
  • The schema
  • The default values of configurations
  • The threading model
  • The binary protocol
  • The REST endpoints
  • The admin CLI options
  • Anything that affects deployment

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository:

@rdhabalia rdhabalia added this to the 2.11.0 milestone Oct 26, 2022
@rdhabalia rdhabalia self-assigned this Oct 26, 2022
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Oct 26, 2022
@codecov-commenter

codecov-commenter commented Oct 26, 2022 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 50.78%. Comparing base (6c65ca0) to head (371a754).
⚠️ Report is 3524 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@              Coverage Diff              @@
##             master   #18214       +/-   ##
=============================================
+ Coverage     34.91%   50.78%   +15.86%     
- Complexity     5707     8723     +3016     
=============================================
  Files           607      612        +5     
  Lines         53396    53579      +183     
  Branches       5712     5742       +30     
=============================================
+ Hits          18644    27208     +8564     
+ Misses        32119    23367     -8752     
- Partials       2633     3004      +371     
Flag Coverage Δ
unittests 50.78% <ø> (+15.86%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.
see 180 files with indirect coverage changes

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants