Skip to content

Duplicate data stored in loadbalance/brokers/ #17738

Closed
@thetumbled

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
image

we could verify this by retrieving data from ZK.
image
image

Solution

do not serialize field bundleStats.

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Assignees

Labels

type/bugThe PR fixed a bug or issue reported a bug

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions