poorbarcode opened a new pull request, #25437:
URL: https://github.com/apache/pulsar/pull/25437
### 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
<!-- DO NOT REMOVE THIS SECTION. CHECK THE PROPER BOX ONLY. -->
- [ ] `doc` <!-- Your PR contains doc changes. -->
- [ ] `doc-required` <!-- Your PR changes impact docs and you will update
later -->
- [x] `doc-not-needed` <!-- Your PR changes do not impact docs -->
- [ ] `doc-complete` <!-- Docs have been already added -->
### Matching PR in forked repository
PR in forked repository: x
--
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]