GeezerVison is showing github.com — [fix][broker] Support schema-less auto-produce registration by poorbarcode · Pull Request #27111 · apache/pulsar
Conversation
poorbarcode
commented
Oct 25, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
Motivation
Fixes #27048
Modifications
The protocol now identifies AUTO_PRODUCE_BYTES producers and advertises whether a broker accepts their schema-less registration. A supporting broker accepts that registration and enforces that each produced message carries a non-empty schema version when schema validation is enabled. This avoids unintended topic-schema registration while preserving schema-validation guarantees.
- Add the producer marker and the broker feature flag to the wire protocol.
- Omit the producer schema only when the connected broker advertises support; retain the existing registration behavior with older brokers.
- Register message schemas on demand for producers registered without a schema, and cover global/topic validation, batching, deletion, protocol, and legacy-broker behavior with tests.
- Propagate the capability through direct Proxy connections and conservatively disable it for lookup Proxy connections without a known backend.
Does this pull request potentially affect one of the following parts
No.
Compatibility: new clients retain the existing schema-carrying registration when connected to older brokers, while older clients ignore the new optional protocol fields when connected to newer brokers. A new Proxy forwards the capability only when its directly connected backend broker advertises it; lookup Proxy connections conservatively use the legacy behavior.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
…opics
Assisted-by: Codex
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Oct 30, 2026
|
After #27033 is finished, we will cherry-pick the current PR into branch-4.0 and branch-4.2
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This was referenced Nov 19, 2026
Uh oh!
There was an error while loading. Please reload this page.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|