davsclaus opened a new pull request, #24922:
URL: https://github.com/apache/camel/pull/24922

   ## Summary
   Backport of #24921 to 4.18.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.18.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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to