[
https://issues.apache.org/jira/browse/CAMEL-28002?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Work on CAMEL-28002 started by Adriano Machado.
-----------------------------------------------
> camel-jcache - JCacheAggregationRepository loses a group created concurrently
> by another node
> ---------------------------------------------------------------------------------------------
>
> Key: CAMEL-28002
> URL: https://issues.apache.org/jira/browse/CAMEL-28002
> Project: Camel
> Issue Type: Bug
> Components: camel-jcache
> Reporter: Claus Ibsen
> Assignee: Adriano Machado
> Priority: Minor
> Fix For: 4.25.0
>
>
> h4. 1. JCacheAggregationRepository.add(ctx, key, oldExchange, newExchange)
> With oldExchange == null it uses cache.getAndPut, which overwrites a group
> that another node just created, and then throws OptimisticLockingException,
> so that group is lost. Proposed change: cache.putIfAbsent (it returns a
> boolean).
> Found while checking the option and console descriptions of CAMEL-27980.
> ----
> _Filed by Claude Code on behalf of davsclaus_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)