Skip to content

topics.getPartitionedInternalStats should allow the returned data to not contain publishers or subscriptions information. #21200

@crossoverJie

Description

@crossoverJie

Search before asking

  • I searched in the issues and found nothing similar.

Motivation

I have a lot of producers in a topic called admin.topics().getPartitionedStats, like 3k producers.The response size of getPartitionedStats is enormous (400M+) and it responds slowly.

image

However, I do not require information about publishers and subscriptions.

Solution

So I hope publishers and subscriptions can be optional, we can add new interface like below:

    CompletableFuture<PartitionedTopicStats> getPartitionedStatsAsync(
            String topic, boolean perPartition, boolean getPreciseBacklog, boolean subscriptionBacklogSize,
            boolean getEarliestTimeInBacklog, boolean containPublishers, boolean containSubsriptions,);

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

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

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions