Closed
Description
Search before asking
- 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, consisting 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
we could verify this by retrieving data from ZK.
Solution
do not serialize field bundleStats.
Are you willing to submit a PR?
- I'm willing to submit a PR!