pulsar
pulsar copied to clipboard
Duplicate data stored in loadbalance/brokers/
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

Solution
rename member lastStats to bundleStats.
Alternatives
,
Anything else?
,
Are you willing to submit a PR?
- [X] I'm willing to submit a PR!