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/07/08 21:28:48 UTC
[GitHub] [pulsar] michaeljmarshall opened a new issue, #16488: Improve naming for delete topic error
michaeljmarshall opened a new issue, #16488:
URL: https://github.com/apache/pulsar/issues/16488
**Is your enhancement request related to a problem? Please describe.**
When I try to delete a topic with a consumer connected, I get the following error:
```
$ bin/pulsar-admin topics delete test
21:20:34.286 [AsyncHttpClient-7-1] WARN org.apache.pulsar.client.admin.internal.BaseResource - [http://pulsar-proxy.michael-test.svc.cluster.local:8080/admin/v2/persistent/public/default/test?force=false&deleteSchema=false] Failed to perform http delete request: javax.ws.rs.ClientErrorException: HTTP 412 Precondition Failed
Topic has active producers/subscriptions
```
Then, when I disconnect my consumer, the deletion succeeds. It is confusing that the error indicates active `subscriptions`. The code appears to have some legacy use cases where subscriptions prevented deletion, but that doesn't appear to be the case any more: https://github.com/apache/pulsar/blob/86ab67f2246e99d4388177d30489199c3f25e2b8/pulsar-broker/src/main/java/org/apache/pulsar/broker/service/persistent/PersistentTopic.java#L1115-L1226
**Describe the solution you'd like**
I'd like the error message to be descriptive.
--
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.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [pulsar] Technoboy- closed issue #16488: Improve naming for delete topic error
Posted by GitBox <gi...@apache.org>.
Technoboy- closed issue #16488: Improve naming for delete topic error
URL: https://github.com/apache/pulsar/issues/16488
--
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 #16488: Improve naming for delete topic error
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #16488:
URL: https://github.com/apache/pulsar/issues/16488#issuecomment-1207575270
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