lhotari opened a new pull request #14117:
URL: https://github.com/apache/pulsar/pull/14117
Fixes #14104
### Motivation
- PR #12818 changes for PIP-110 broke the API. A newer admin client cannot
be used with an older broker.
- 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.
- This solution is based on request’s “Content Type”
`Content-Type: application/vnd.partitioned-topic-metadata+json` on request,
`@Consumes("application/vnd.partitioned-topic-metadata+json")` on method that
handles the new payload type.
### Modifications
- use custom media type `application/vnd.partitioned-topic-metadata+json` to
distinguish the new content payload 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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]