Skip to content

[Enhancement] Add counter for marker messages to "pulsar-admin topics analyze-backlog" #25082

@lhotari

Description

@lhotari

Search before reporting

  • I searched in the issues and found nothing similar.

Motivation

Pulsar Admin contains a command for analysing the topic backlog. However, the counters don't return the amount of marker messages. It would be useful to distinguish marker messages from ordinary messages.

Solution

  • add the field to org.apache.pulsar.common.stats.AnalyzeSubscriptionBacklogResult
  • add the counter logic to org.apache.pulsar.broker.service.persistent.PersistentSubscription#analyzeBacklog

Alternatives

No response

Anything else?

No response

Are you willing to submit a PR?

  • I'm willing to submit a PR!

Metadata

Metadata

Assignees

Labels

type/enhancementThe enhancements for the existing features or docs. e.g. reduce memory usage of the delayed messages

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions