Skip to content

[pulsar-admin] getPartitionedTopicMetadata method supports setting automatic topic create #11923

@shibd

Description

@shibd

Describe the solution you'd like

PersistentTopics Interface supports setting automatic topic create. However, admin does not support this configuration.

PersistentTopics#getPartitionedMetadata

    public PartitionedTopicMetadata getPartitionedMetadata(
            @ApiParam(value = "Specify the tenant", required = true)
            @PathParam("tenant") String tenant,
            @ApiParam(value = "Specify the namespace", required = true)
            @PathParam("namespace") String namespace,
            @ApiParam(value = "Specify topic name", required = true)
            @PathParam("topic") @Encoded String encodedTopic,
            @ApiParam(value = "Is authentication required to perform this operation")
            @QueryParam("authoritative") @DefaultValue("false") boolean authoritative,
            @ApiParam(value = "Is check configuration required to automatically create topic")
            @QueryParam("checkAllowAutoCreation") @DefaultValue("false") boolean checkAllowAutoCreation){
}

pulsar client admin: Topics#getPartitionedTopicMetadata

    PartitionedTopicMetadata getPartitionedTopicMetadata(String topic) throws PulsarAdminException;

Describe alternatives you've considered
I hope interfaces can be added.

    PartitionedTopicMetadata getPartitionedTopicMetadata(String topic, boolean checkAllowAutoCreation) throws PulsarAdminException;

Additional context
Original issue: streamnative/pulsar-flink#398

Metadata

Metadata

Assignees

Labels

lifecycle/staletype/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