[ 
https://issues.apache.org/jira/browse/CAMEL-20768?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Claus Ibsen updated CAMEL-20768:
--------------------------------
    Fix Version/s: 4.7.0

> camel-spring-redis - SpringRedisIdempotentRepository flushes DB on start
> ------------------------------------------------------------------------
>
>                 Key: CAMEL-20768
>                 URL: https://issues.apache.org/jira/browse/CAMEL-20768
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-spring-redis
>    Affects Versions: 4.5.0, 4.6.0
>            Reporter: Dylan Piergies
>            Priority: Major
>             Fix For: 4.7.0
>
>
> The {{SpringRedisIdempotentRepository}} class executes the statement 
> {{this.redisTemplate.getConnectionFactory().getConnection().flushDb();}} 
> within its {{doStart}} method.
> This behaviour does not seem safe or desirable, since the DB may be in use by 
> other applications, or by replicas of a single application.
> It seems that a restart of the application or a scale-up event would cause 
> the idempotency DB to be lost, which somewhat defeats the point of using a 
> centralised cache.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to