Skip to content

[fix][broker] do not serialize field bundleStats - #18150

Merged
nodece merged 6 commits into
apache:masterfrom
thetumbled:feature_reduce_duplicate_ZKdata
Oct 25, 2022
Merged

nodece merged 6 commits into
apache:masterfrom
thetumbled:feature_reduce_duplicate_ZKdata

Conversation

@thetumbled

@thetumbled thetumbled commented Oct 21, 2022 •

Copy link
Copy Markdown
Member

Fixes #17738

Modifications

because broker will do not use the field bundleStats, so we could do not serialize the field bundleStats.

Verifying this change

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

Documentation

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

Matching PR in forked repository

PR in forked repository:
thetumbled#3

@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Oct 21, 2022
@codelipenghui codelipenghui added this to the 2.12.0 milestone Oct 24, 2022
@codelipenghui codelipenghui changed the title do not serialize field bundleStats [fix][broker] do not serialize field bundleStats Oct 24, 2022
@codelipenghui codelipenghui added type/bug The PR fixed a bug or issue reported a bug area/broker type/cleanup Code or doc cleanups e.g. remove the outdated documentation or remove the code no longer in use labels Oct 24, 2022
@codelipenghui codelipenghui changed the title [fix][broker] do not serialize field bundleStats [cleanup][broker] do not serialize field bundleStats Oct 24, 2022

@codelipenghui codelipenghui left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Nice catch!
Could you please help add an unit test to make sure we will not break it again in the future?

@codelipenghui codelipenghui changed the title [cleanup][broker] do not serialize field bundleStats [fix][broker] do not serialize field bundleStats Oct 24, 2022
@codelipenghui codelipenghui removed the type/cleanup Code or doc cleanups e.g. remove the outdated documentation or remove the code no longer in use label Oct 24, 2022
Comment on lines +31 to +33
/*
Ensuring that there no bundleStats field in the json string serialized from LocalBrokerData.
*/

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Suggested change
/*
Ensuring that there no bundleStats field in the json string serialized from LocalBrokerData.
*/
/**
* Ensure that there is no bundleStats field in the json string serialized from LocalBrokerData.
*/

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

i found another LocalBrokerDataTest class, so i move the implementation into it.

@codecov-commenter

codecov-commenter commented Oct 24, 2022 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 40.28%. Comparing base (6c65ca0) to head (98b9c6d).
⚠️ Report is 3527 commits behind head on master.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##             master   #18150      +/-   ##
============================================
+ Coverage     34.91%   40.28%   +5.36%     
- Complexity     5707    15008    +9301     
============================================
  Files           607     1579     +972     
  Lines         53396   128710   +75314     
  Branches       5712    14152    +8440     
============================================
+ Hits          18644    51852   +33208     
- Misses        32119    71046   +38927     
- Partials       2633     5812    +3179     
Flag Coverage Δ
unittests 40.28% <ø> (+5.36%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files with missing lines Coverage Δ
...ar/policies/data/loadbalancer/LocalBrokerData.java 63.35% <ø> (ø)

... and 1063 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.

@nodece
nodece merged commit 6cc30c9 into apache:master Oct 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/broker doc-not-needed Your PR changes do not impact docs ready-to-test type/bug The PR fixed a bug or issue reported a bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Duplicate data stored in loadbalance/brokers/

8 participants