davsclaus commented on PR #24710:
URL: https://github.com/apache/camel/pull/24710#issuecomment-4979822163

   @gnodet @oscerd Thanks for the reviews! Pushed a follow-up commit addressing 
both points:
   
   1. **PostgreSQL transaction safety** (@oscerd): Added 
`status.setRollbackOnly()` before returning `Boolean.FALSE` in the 
`DuplicateKeyException` catch. This ensures a clean rollback on databases like 
PostgreSQL where a constraint violation marks the transaction as failed — 
without it, the `TransactionTemplate` would attempt to commit the failed 
transaction and throw `UnexpectedRollbackException`.
   
   2. **Debug logging** (@gnodet): Added `log.debug()` for the duplicate-key 
race so operators can see the concurrent idempotent-check behavior in 
multi-node deployments.
   
   3. **Upgrade guide** (@oscerd): Added an entry documenting the new 
`OptimisticLockingException` from stale remove and `ParseRuntimeException` from 
malformed templates.
   
   _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