You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@pulsar.apache.org by GitBox <gi...@apache.org> on 2021/09/04 03:24:48 UTC

[GitHub] [pulsar] shibd opened a new issue #11923: [pulsar-admin] getPartitionedTopicMetadata method supports setting automatic topic create

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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] github-actions[bot] commented on issue #11923: [pulsar-admin] getPartitionedTopicMetadata method supports setting automatic topic create

Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #11923:
URL: https://github.com/apache/pulsar/issues/11923#issuecomment-1058752187


   The issue had no activity for 30 days, mark with Stale label.


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] shibd closed issue #11923: [pulsar-admin] getPartitionedTopicMetadata method supports setting automatic topic create

Posted by GitBox <gi...@apache.org>.
shibd closed issue #11923:
URL: https://github.com/apache/pulsar/issues/11923


   


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] shibd commented on issue #11923: [pulsar-admin] getPartitionedTopicMetadata method supports setting automatic topic create

Posted by GitBox <gi...@apache.org>.
shibd commented on issue #11923:
URL: https://github.com/apache/pulsar/issues/11923#issuecomment-913705420


   @codelipenghui Ok, I'll try to fix it.


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [pulsar] codelipenghui commented on issue #11923: [pulsar-admin] getPartitionedTopicMetadata method supports setting automatic topic create

Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #11923:
URL: https://github.com/apache/pulsar/issues/11923#issuecomment-913682349


   @shibd Are you interested in pushing a fix? We should check the corresponding permissions(`PolicyName.PARTITION, PolicyOperation.WRITE`) if checkAllowAutoCreation is set to true.


-- 
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: commits-unsubscribe@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org