Skip to content

Duplicate data stored in loadbalance/brokers/ #17738

Closed

Description

@thetumbled

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!

Activity

  1. mattisonchao commented on Sep 26, 2022

    @mattisonchao
    Member

    Thanks a lot for your contribution.

  2. added
    type/bug
    on Sep 26, 2022
  3. thetumbled commented on Oct 21, 2022

    @thetumbled
    MemberAuthor

    Thanks a lot for your contribution.

    PTAL @mattisonchao

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

type/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions