You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by "davsclaus (via GitHub)" <gi...@apache.org> on 2026/07/20 07:19:27 UTC
[PR] CAMEL-24169: Schema resolver latches first resolved schema forever (4.14.x) [camel]
davsclaus opened a new pull request, #24923:
URL: https://github.com/apache/camel/pull/24923
## Summary
Backport of #24921 to 4.14.x.
- Fix `AvroSchemaResolver` and `ProtobufSchemaResolver` unconditionally promoting dynamically resolved schemas into the `this.schema` instance field
- After the first exchange resolves a schema, the per-type `schemes` ConcurrentMap becomes dead code — every subsequent exchange short-circuits to the latched schema regardless of body type or per-exchange properties
- The fix removes the `this.schema = answer` latch from `computeIfAbsent()` so `this.schema` is only authoritative when explicitly set via `setSchema()`
- jackson3 variants don't exist on 4.14.x
## Test plan
- [x] Cherry-picked cleanly (jackson3 files excluded — not present on this branch)
- [ ] `mvn verify` in `camel-jackson-avro` and `camel-jackson-protobuf`
_Claude Code on behalf of davsclaus_
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [PR] CAMEL-24169: Schema resolver latches first resolved schema forever (4.14.x) [camel]
Posted by "davsclaus (via GitHub)" <gi...@apache.org>.
davsclaus merged PR #24923:
URL: https://github.com/apache/camel/pull/24923
--
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: commits-unsubscribe@camel.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org