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 2022/02/04 09:20:22 UTC
[GitHub] [pulsar] lhotari commented on issue #14104: Can't create topics after #12818 using Pulsar master client and 2.9.x (or prior) broker (v3/persistent NOT FOUND)
lhotari commented on issue #14104:
URL: https://github.com/apache/pulsar/issues/14104#issuecomment-1029792263
This was discussed in the Pulsar community meeting. Some notes from the discussion:
- PR #12818 changes should be reverted so that API could be kept backwards compatible.
- It’s possible to have the current v2 API for creating persistent topics to handle multiple different payload types
The challenge seems to be that in the old method, the number of partitions was passed in the payload as a single integer without having a JSON object at all. This makes it harder to extend the existing API, but doesn’t make it impossible.
- One possible solution is based on request’s “Content Type”
`Content-Type: application/vnd.some-custom-identifier+json` on request, `@Consumes("application/vnd.some-custom-identifier+json")` on method that handles the new payload type. It also needs an annotation that the newer payload uses the custom mime type.
--
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