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

   ## Summary
   
   - Fixes a regression from CAMEL-21733 (Camel 4.11) where 
`GenericFileOnCompletion` re-evaluates the idempotent key expression at 
completion time using the routed exchange's mutated headers, causing key 
mismatch
   - Snapshots the idempotent key as an exchange property 
(`CamelFileIdempotentKey`) in `processExchange()` before routing, and reads it 
back at commit/rollback time instead of re-evaluating
   - Fixes three failure modes: failed files never retried (eager+rollback), 
endless duplicates (non-eager+noop), and unconfirmed entries after restart 
(JDBC/Kafka repos)
   
   ## Test plan
   
   - [x] New test `FileConsumerIdempotentKeyHeaderMutationTest` — route mutates 
`CamelFileName`, first attempt fails, verifies file is retried on next poll
   - [x] All 29 existing idempotent file tests pass 
(`FileConsumerIdempotentKey*`, `FileConsumeNoopIdempotent*`, `FileIdempotent*`)
   
   _Claude Code on behalf of davsclaus_
   
   Co-Authored-By: Claude Opus 4.6 <[email protected]>


-- 
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