GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — [fix][broker] Support schema-less auto-produce registration by poorbarcode · Pull Request #27111 · apache/pulsar

Conversation

@poorbarcode

@poorbarcode poorbarcode commented Oct 25, 2026 •
edited
Loading

Uh oh!

There was an error while loading. Please reload this page.

Copy link
Copy Markdown
Contributor

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.

All reactions
@poorbarcode
[fix][broker] Support schema-less auto-produce registration
36fac34
@poorbarcode poorbarcode self-assigned this Oct 25, 2026
@poorbarcode poorbarcode added release/4.2.6 release/4.0.15 release/5.0.2 labels Oct 25, 2026
@poorbarcode poorbarcode added this to the 5.1.0 milestone Oct 25, 2026
@poorbarcode poorbarcode added the type/bug The PR fixed a bug or issue reported a bug label Oct 25, 2026
Denovo1998
Denovo1998 requested changes Oct 27, 2026
View reviewed changes
Comment thread pulsar-broker/src/main/java/org/apache/pulsar/broker/service/Producer.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@poorbarcode
[fix][broker] Allow schema-less auto-produce replication
3db585d
@poorbarcode
poorbarcode requested a review from Denovo1998 October 28, 2026 18:33
@poorbarcode
[test][broker] Align auto-produce validation tests with schema-less t…
df56a30
…opics

Assisted-by: Codex
Denovo1998
Denovo1998 requested changes Oct 29, 2026
View reviewed changes
Comment thread pulsar-broker/src/test/java/org/apache/pulsar/client/impl/SchemaDeleteTest.java Resolved

Uh oh!

There was an error while loading. Please reload this page.

@poorbarcode
[test][broker] Await auto-producer reconnect after schema deletion
4deef98
Assisted-by: Codex
@poorbarcode
poorbarcode requested a review from Denovo1998 October 29, 2026 12:58
Denovo1998
Denovo1998 approved these changes Oct 29, 2026
View reviewed changes

@Denovo1998 Denovo1998 left a comment

Copy link
Copy Markdown
Contributor

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.

LGTM!

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@poorbarcode
poorbarcode merged commit f3846f4 into apache:master Oct 30, 2026
43 checks passed

Uh oh!

There was an error while loading. Please reload this page.

lhotari pushed a commit that referenced this pull request Oct 30, 2026
@poorbarcode @lhotari
[fix][broker] Support schema-less auto-produce registration (#27111)
595b0c4
(cherry picked from commit f3846f4)
@lhotari lhotari added the cherry-picked/branch-5.0 label Oct 30, 2026
This was referenced Oct 30, 2026
[fix][client] Prevent premature producer readiness on reconnect #27211
Merged
[fix][broker] Fail a schema-less AUTO_PRODUCE_BYTES send at once instead of retrying it until the send timeout #27312
Merged
[fix][broker] Fix replication stuck on a schema-less message to a remote topic with an enforced schema #27314
Merged
@poorbarcode

poorbarcode commented Nov 13, 2026

Copy link
Copy Markdown
Contributor Author

After #27033 is finished, we will cherry-pick the current PR into branch-4.0 and branch-4.2

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

This was referenced Nov 19, 2026
[improve][broker] Recover incompatible replication schemas on metadata changes #27033
Open
[improve][ci] Run CI for the 4.2.6 backports to branch-4.2 (do not merge) #27680
Closed
[improve][ci] Run CI for the 4.2.6 backports to branch-4.2 (do not merge) #27681
Closed
[improve][ci] Run CI for the 4.2.6 backports to branch-4.2 (do not merge) #27684
Closed
@lhotari lhotari added cherry-picked/branch-4.2 cherry-picked/branch-4.0 labels Nov 21, 2026
poorbarcode added a commit to poorbarcode/pulsar that referenced this pull request Nov 26, 2026
@poorbarcode @lhotari
[fix][broker] Support schema-less auto-produce registration (apache#2…
e98c7e7
…7111)

(cherry picked from commit f3846f4)
poorbarcode added a commit to poorbarcode/pulsar that referenced this pull request Nov 26, 2026
@poorbarcode @lhotari
[fix][broker] Support schema-less auto-produce registration (apache#2…
96b8e27
…7111)

(cherry picked from commit f3846f4)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@Denovo1998 Denovo1998 Denovo1998 approved these changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

@poorbarcode poorbarcode

Labels

cherry-picked/branch-4.0 cherry-picked/branch-4.2 cherry-picked/branch-5.0 release/4.0.15 release/4.2.6 release/5.0.2 type/bug The PR fixed a bug or issue reported a bug

Projects

None yet

Milestone

5.1.0

Development

Successfully merging this pull request may close these issues.

[Bug][broker] Replication recovery can restore a deleted remote schema

Uh oh!

There was an error while loading. Please reload this page.

3 participants

@poorbarcode @Denovo1998 @lhotari
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.
You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.