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/07/29 18:59:21 UTC
[GitHub] [pulsar] mfortman11 opened a new issue #11502: REST API Create topic returns a 204 instead of 409 for duplicate topics
mfortman11 opened a new issue #11502:
URL: https://github.com/apache/pulsar/issues/11502
When creating a topic via the REST API if you create a duplicate topic it returns a 204 instead of the 409 the documentation states or is returned for calls like create namespace.

--
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] nlu90 commented on issue #11502: REST API Create topic returns a 204 instead of 409 for duplicate topics
Posted by GitBox <gi...@apache.org>.
nlu90 commented on issue #11502:
URL: https://github.com/apache/pulsar/issues/11502#issuecomment-889494965
Which Pulsar version are you using. It seems the 2.8.0 release fixed the problem:
```
➜ apache-pulsar-2.8.0 ./bin/pulsar-admin topics create persistent://public/default/test-duplicate
➜ apache-pulsar-2.8.0 ./bin/pulsar-admin topics create persistent://public/default/test-duplicate
15:12:02.434 [AsyncHttpClient-7-1] WARN org.apache.pulsar.client.admin.internal.BaseResource - [http://localhost:8080/admin/v2/persistent/public/default/test-duplicate] Failed to perform http put request: javax.ws.rs.ClientErrorException: HTTP 409 Conflict
This topic already exists
Reason: This topic already exists
```
--
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] leizhiyuan commented on issue #11502: REST API Create topic returns a 204 instead of 409 for duplicate topics
Posted by GitBox <gi...@apache.org>.
leizhiyuan commented on issue #11502:
URL: https://github.com/apache/pulsar/issues/11502#issuecomment-893282282
```
(base) ➜ apache-pulsar-2.8.0 ./bin/pulsar-admin topics create-partitioned-topic -p 1 persistent://public/default/test-duplicate
(base) ➜ apache-pulsar-2.8.0 ./bin/pulsar-admin topics create-partitioned-topic -p 1 persistent://public/default/test-duplicate
16:46:47.759 [AsyncHttpClient-7-1] WARN org.apache.pulsar.client.admin.internal.BaseResource - [http://localhost:8080/admin/v2/persistent/public/default/test-duplicate/partitions] Failed to perform http put request: javax.ws.rs.ClientErrorException: HTTP 409 Conflict
This topic already exists
Reason: This topic already exists
```
partitioned topic is ok.
--
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 #11502: REST API Create topic returns a 204 instead of 409 for duplicate topics
Posted by GitBox <gi...@apache.org>.
codelipenghui commented on issue #11502:
URL: https://github.com/apache/pulsar/issues/11502#issuecomment-1058887620
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] leizhiyuan commented on issue #11502: REST API Create topic returns a 204 instead of 409 for duplicate topics
Posted by GitBox <gi...@apache.org>.
leizhiyuan commented on issue #11502:
URL: https://github.com/apache/pulsar/issues/11502#issuecomment-893282282
```
(base) ➜ apache-pulsar-2.8.0 ./bin/pulsar-admin topics create-partitioned-topic -p 1 persistent://public/default/test-duplicate
(base) ➜ apache-pulsar-2.8.0 ./bin/pulsar-admin topics create-partitioned-topic -p 1 persistent://public/default/test-duplicate
16:46:47.759 [AsyncHttpClient-7-1] WARN org.apache.pulsar.client.admin.internal.BaseResource - [http://localhost:8080/admin/v2/persistent/public/default/test-duplicate/partitions] Failed to perform http put request: javax.ws.rs.ClientErrorException: HTTP 409 Conflict
This topic already exists
Reason: This topic already exists
```
partitioned topic is ok.
--
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