Skip to content

[pulsar-broker][REST API] Support unload all partitions of a partitioned topic #5904

@zymap

Description

@zymap

Is your feature request related to a problem? Please describe.

Pulsar supports unload a non-partitioned-topic or a partition of a partitioned topic. If there has a partitioned topic with too many partitions, users need to get all partition and unload them one by one. We need to support unload all partition of a partitioned topic.

Describe the solution you'd like

Support unload all partition of a partitioned topic.

The implementation is similar to this:

PartitionedTopicMetadata partitionMetadata = getPartitionedTopicMetadata(topicName, authoritative, false);

We need to get all partition of a partitioned topic if the topic is a partitioned topic and send unload requests and waiting for them back.

Additional context

We need to add an integration test or unit test for verifying this change.

There has a similar unit test about REST API:

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedtype/featureThe PR added a new feature or issue requested a new feature

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions