pulsar icon indicating copy to clipboard operation
pulsar copied to clipboard

Duplicate data stored in loadbalance/brokers/

Open thetumbled opened this issue 3 years ago • 0 comments

Search before asking

  • [X] I searched in the issues and found nothing similar.

Motivation

i find that method getBundleStats return member lastStats,causing duplicate data stored in ZK when jackson serializing LocalBrokerData,and the size of data in lastStats is pretty large,consising of metrics data concerning to every bundles that belong to this broker,and i find that the method LocalBrokerData.getBundleStats is not used anywhere,i wonder whether we can deduplicate that.

org.apache.pulsar.policies.data.loadbalancer.LocalBrokerData#getBundleStats image

Solution

rename member lastStats to bundleStats.

Alternatives

,

Anything else?

,

Are you willing to submit a PR?

  • [X] I'm willing to submit a PR!

thetumbled avatar Sep 20 '22 09:09 thetumbled