shibd opened a new issue #11923:
URL: https://github.com/apache/pulsar/issues/11923
**Describe the solution you'd like**
`PersistentTopics` Interface supports setting automatic topic create.
However, admin does not support this configuration.
PersistentTopics#getPartitionedMetadata
``` java
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
``` java
PartitionedTopicMetadata getPartitionedTopicMetadata(String topic)
throws PulsarAdminException;
```
**Describe alternatives you've considered**
I hope interfaces can be added.
``` java
PartitionedTopicMetadata getPartitionedTopicMetadata(String topic,
boolean checkAllowAutoCreation) throws PulsarAdminException;
```
**Additional context**
Original issue: https://github.com/streamnative/pulsar-flink/issues/398
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]