shibd opened a new pull request, #142:
URL: https://github.com/apache/pulsar-client-cpp/pull/142
Master Issue: apache/pulsar/pull/2685
### Motivation
Implementing AUTO_PUBLISH schema solves the following problems:
1. If a schema exists in a topic, but the producer does not know it. He
still wanted to send data to the topic. (The scenario in which the DLQ sends a
message: Please refer #139 **[Verifying this change][5]**)
2. For clients based on C++ implementations(Node and Python), these client
supports help users serialize and deserialize.
They can use this `AUTO_PUBLISH` schema feature to implement the same
semantics as Java clients.
### Modifications
- When creating a producer with `AUTO_PUBLISH` schema, try to get the schema
of that topic and use it.
- Support `getSchema` on `LookupService`(HTTP and Binary).
### Verifying this change
- Add `LookupServiceTest` unit test to cover `getSchema` logic.
- Add `SchemaTest.testAutoPublicSchema` unit test to cover creating
producer success when the topic has a schema.
### Documentation
- [ ] `doc-required`
(Your PR needs to update docs and you will update later)
- [x] `doc-not-needed`
(Please explain why)
- [ ] `doc`
(Your PR contains doc changes)
- [ ] `doc-complete`
(Docs have been already added)
--
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]