pulsar icon indicating copy to clipboard operation
pulsar copied to clipboard

Persistent topic put request doesn't return 409 error if topic exists

Open nitinmuteja opened this issue 6 years ago • 3 comments

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior:

  1. Post a put request to 'persistent/{tenant}/{namespace}/{topic}' with a request for topic
  2. Should return an OK response
  3. Post the same request again.
  4. An OK response is returned.

Expected behavior Should return 409 as per docs.

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

  • OS: [e.g. iOS]

Additional context Add any other context about the problem here.

nitinmuteja avatar Apr 25 '20 14:04 nitinmuteja

@nitinmuteja did you run pulsar-admin to check if the issue exists in the pulsar-admin tool? I am wondering if you have sent the right command to pulsar admin RESTful service.

sijie avatar Apr 27 '20 01:04 sijie

@sijie I did not check it with the pulsar admin. I sent the following request to the REST api curl -X PUT -H "Content-Type: text/plain" -d ${partitions} "http://${brokerip}:${brokerport}/admin/v2/persistent/${tenant}/${namespace}/${topic}/partitions"

nitinmuteja avatar May 09 '20 06:05 nitinmuteja

Closed as stale. Please open a new issue if it's still relevant to maintained versions.

tisonkun avatar Mar 06 '23 12:03 tisonkun