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 2022/05/10 12:49:01 UTC

[GitHub] [pulsar] mattisonchao commented on issue #15433: Terminating a partitioned topic that has just been created often fails with "PreconditionFailedException: Failed to find ownership for topic..."

mattisonchao commented on issue #15433:
URL: https://github.com/apache/pulsar/issues/15433#issuecomment-1122347743

   Hi, @zbentley 
   
   I try to use your step to reproduce this problem but looks like it doesn't work well. Could you share your code to help re-produce it?
   
   ## Reproduce step
   
   1.  `./pulsar-admin tenants create my-property`
   2.  `./pulsar-admin namespaces create my-property/my-ns`
   3.  `./pulsar-admin topics create-partitioned-topic persistent://my-property/my-ns/test -p 200`
   4.  Use `httpie` POST to the `/terminate/partitions` endpoint on that topic.
   
   ```
   http POST http://localhost:8080/admin/v2/persistent/my-property/my-ns/test/terminate/partitions
   HTTP/1.1 200 OK
   Content-Type: application/json
   Date: Tue, 10 May 2022 12:43:50 GMT
   Server: Jetty(9.4.44.v20210927)
   Transfer-Encoding: chunked
   broker-address: localhost
   {
   	... omit some data
   }
   ```
   
   
   
   


-- 
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