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]Producer with AUTO_PRODUCE schema failed to reconnect, which caused by schema incompatible by poorbarcode · Pull Request #25437 · apache/pulsar

Conversation

@poorbarcode

@poorbarcode poorbarcode commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

Motivation

Background

  • Under schema-validation-enforced settings
  • Create a producer with AUTO_PRODUCE schema
    • The producer started.
  • Registers a new schema to the topic by Admin
  • The producer reconnects
    • (Highlight)Issue: the producer could reconnect with stale AutoProduceBytesSchema (BYTES), which then became incompatible with the schema already registered on the cluster.

You can reproduce the issue with the new test testReplicationReconnectWithSchemaValidationEnforced

Modifications

The goal is to make replication recover automatically: when an IncompatibleSchemaException occurs, refresh the topic schema and retry producer creation so the replication pipeline can resume.

Documentation

  • doc
  • doc-required
  • doc-not-needed
  • doc-complete

Matching PR in forked repository

PR in forked repository: x

Sorry, something went wrong.

Uh oh!

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

All reactions
@poorbarcode
[fix][broker]Fix replication failed after a disconnection, which caus…
26dec5a
…ed by schema incompatible
@poorbarcode poorbarcode added this to the 5.0.0 milestone Mar 30, 2026
@poorbarcode poorbarcode self-assigned this Mar 30, 2026
@poorbarcode poorbarcode added type/bug The PR fixed a bug or issue reported a bug release/4.1.4 release/4.0.10 labels Mar 30, 2026
@github-actions github-actions Bot added the doc-not-needed Your PR changes do not impact docs label Mar 30, 2026
@poorbarcode
1
856a3ba
@poorbarcode poorbarcode added the ready-to-test label Mar 30, 2026
codelipenghui
codelipenghui reviewed Mar 31, 2026
View reviewed changes
Comment thread pulsar-client/src/main/java/org/apache/pulsar/client/impl/ProducerImpl.java Resolved

Uh oh!

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

@poorbarcode
poorbarcode requested a review from codelipenghui March 31, 2026 10:45
codelipenghui
codelipenghui approved these changes Mar 31, 2026
View reviewed changes
@lhotari lhotari changed the title [fix][broker]Producer with AUTO_PRODECE schema failed to reconnect, which caused by schema incompatible [fix][broker]Producer with AUTO_PRODUCE schema failed to reconnect, which caused by schema incompatible Mar 31, 2026
@poorbarcode
poorbarcode merged commit fc27fe7 into apache:master Apr 1, 2026
83 of 85 checks passed

Uh oh!

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

poorbarcode added a commit that referenced this pull request Apr 1, 2026
@poorbarcode
[fix][broker]Producer with AUTO_PRODUCE schema failed to reconnect, w…
b54302c
…hich caused by schema incompatible (#25437)

(cherry picked from commit fc27fe7)
poorbarcode added a commit that referenced this pull request Apr 1, 2026
@poorbarcode
[fix][broker]Producer with AUTO_PRODUCE schema failed to reconnect, w…
3d33e48
…hich caused by schema incompatible (#25437)

(cherry picked from commit fc27fe7)
@poorbarcode poorbarcode added cherry-picked/branch-4.0 cherry-picked/branch-4.1 labels Apr 1, 2026
priyanshu-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 1, 2026
@poorbarcode @priyanshu-ctds
[fix][broker]Producer with AUTO_PRODUCE schema failed to reconnect, w…
53d539a
…hich caused by schema incompatible (apache#25437)

(cherry picked from commit fc27fe7)
(cherry picked from commit 3d33e48)
priyanshu-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 1, 2026
@poorbarcode @priyanshu-ctds
[fix][broker]Producer with AUTO_PRODUCE schema failed to reconnect, w…
9fc6a7d
…hich caused by schema incompatible (apache#25437)

(cherry picked from commit fc27fe7)
(cherry picked from commit 3d33e48)
priyanshu-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 2, 2026
@poorbarcode @priyanshu-ctds
[fix][broker]Producer with AUTO_PRODUCE schema failed to reconnect, w…
fb2090d
…hich caused by schema incompatible (apache#25437)

(cherry picked from commit fc27fe7)
(cherry picked from commit 3d33e48)
priyanshu-ctds pushed a commit to datastax/pulsar that referenced this pull request Apr 3, 2026
@poorbarcode @priyanshu-ctds
[fix][broker]Producer with AUTO_PRODUCE schema failed to reconnect, w…
1e02570
…hich caused by schema incompatible (apache#25437)

(cherry picked from commit fc27fe7)
(cherry picked from commit 3d33e48)
@lhotari lhotari modified the milestones: 5.0.0, 5.0.0-M1 Apr 30, 2026
nodece pushed a commit to ascentstream/pulsar that referenced this pull request May 27, 2026
@poorbarcode @nodece
[fix][broker]Producer with AUTO_PRODUCE schema failed to reconnect, w…
2fe90bb
…hich caused by schema incompatible (apache#25437)

(cherry picked from commit fc27fe7)
@lhotari lhotari added the release/4.2.5 label Aug 18, 2026
lhotari pushed a commit that referenced this pull request Aug 19, 2026
@poorbarcode @lhotari
[fix][broker]Producer with AUTO_PRODUCE schema failed to reconnect, w…
aeca7dd
…hich caused by schema incompatible (#25437)

(cherry picked from commit fc27fe7)
@lhotari lhotari added the cherry-picked/branch-4.2 label Aug 19, 2026
@lhotari lhotari mentioned this pull request Aug 19, 2026
[fix][test] Fix OneWayReplicatorSchemaValidationEnforcedTest racing the replicator's remote topic creation #26382
Merged
1 of 11 tasks
@codelipenghui codelipenghui mentioned this pull request Oct 21, 2026
[fix][broker] Retry incompatible replication schemas without topic unload #27026
Merged
11 tasks
@merlimat merlimat mentioned this pull request Nov 2, 2026
[fix][broker] Fix replication stuck on a schema-less message to a remote topic with an enforced schema #27314
Merged
11 tasks
nodece pushed a commit to ascentstream/pulsar that referenced this pull request Nov 16, 2026
@poorbarcode @nodece
[fix][broker]Producer with AUTO_PRODUCE schema failed to reconnect, w…
71ad10b
…hich caused by schema incompatible (apache#25437)

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

Reviewers

@codelipenghui codelipenghui codelipenghui 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.1 cherry-picked/branch-4.2 doc-not-needed Your PR changes do not impact docs ready-to-test release/4.0.10 release/4.1.4 release/4.2.5 type/bug The PR fixed a bug or issue reported a bug

Projects

None yet

Milestone

5.0.0-M1

Development

Successfully merging this pull request may close these issues.

Uh oh!

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

3 participants

@poorbarcode @codelipenghui @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.