-
Notifications
You must be signed in to change notification settings - Fork 3.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't create topics after #12818 using Pulsar master client and 2.9.x (or prior) broker (v3/persistent NOT FOUND) #14104
Comments
@nicoloboschi good catch! We should discuss about this on dev@ and we must fix this somehow |
So this comment is not correct |
This was discussed in the Pulsar community meeting. Some notes from the discussion:
|
The custom content type could be set here: pulsar/pulsar-client-admin/src/main/java/org/apache/pulsar/client/admin/internal/TopicsImpl.java Lines 353 to 358 in 10036d5
Would be |
@lhotari would you please the PR with the revert? |
It might be simpler to create a PR to fix the issue. I can do that. |
I pushed #14117 as a fix that uses the custom JSON media type solution. |
I noticed that this is needed to fix the issue too: 02a3201 That alone would fix the issue. However I think it's better to not add a new API version in this way since it's not even consistent. For all other methods, the support for PIP-110 was added directly to the existing v2 API. |
Describe the bug
After #12818, a client (built starting from the master branch) get
not found
while trying to create a topic, if the server doesn't support admin v3 topic endpoint (currently only the master branch has this endpoint).To Reproduce
bin/pulsar-admin topics create-partitioned-topic test -p 1
You get:
Expected behavior
The client should be send the request to v2 rest api endpoint
The text was updated successfully, but these errors were encountered: