Persistent topic put request doesn't return 409 error if topic exists
Describe the bug A clear and concise description of what the bug is.
To Reproduce Steps to reproduce the behavior:
- Post a put request to 'persistent/{tenant}/{namespace}/{topic}' with a request for topic
- Should return an OK response
- Post the same request again.
- 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 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 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"
Closed as stale. Please open a new issue if it's still relevant to maintained versions.