fvaleri opened a new pull request #3838: URL: https://github.com/apache/camel/pull/3838
Running JdbcAggregationRepository on a distributed environment (multiple independent threads or multiple JVMs) we have silently dropped exchanges. This PR aims at introducing a version identifier to avoid the lost update problem (overwrites when updating the aggregate row) as stated by the OptimisticLockingAggregationRepository SPI. Tested running 100 threads to aggregate 10k messages on MySQL 5.7 and PostgreSQL 11.5. **Do not merge yet.** I'm having some problems running [my test application](https://github.com/fvaleri/integ-examples/blob/master/standalone/distributed-aggr/src/main/java/it/fvaleri/integ/Application.java) with the new routing engine. Will look at it later and once fixed we could add it as an example or test. ---------------------------------------------------------------- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org