2018-09-29 17:15:37 UTC - Martin Kunev: Hello, I discovered what I believe to 
be a bug in Pulsar 2.1.
When I try to terminate a non-persistent topic with the REST API, I'm getting 
error 500. The same call works for a persistent topic:
```
$ curl -iL -X POST 
'<http://pulsar_url/admin/v2/non-persistent/tenant/ns/topic/terminate>'
HTTP/1.1 500 Internal Server Error
Date: Fri, 28 Sep 2018 12:26:58 GMT
Content-Type: text/plain
Content-Length: 5274
Server: Jetty(9.3.11.v20160721)
```
The error is due to the following Java exception:
```
Message: org.apache.pulsar.broker.service.nonpersistent.NonPersistentTopic 
cannot be cast to org.apache.pulsar.broker.service.persistent.PersistentTopic
```
According to the documentation, this endpoint is correct. Is it a problem in 
pulsar or in the documentation?
----
2018-09-29 17:17:58 UTC - Sijie Guo: Looks like a bug. I don’t think we support 
terminating non persistent topic though 
----
2018-09-29 17:18:36 UTC - Sijie Guo: But I am not close to a laptop, so can’t 
100% tell. 
----

Reply via email to