[ 
https://issues.apache.org/jira/browse/CAMEL-20768?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17846299#comment-17846299
 ] 

Claus Ibsen commented on CAMEL-20768:
-------------------------------------

Yeah you are welcome to work on a PR for main branch.
We could add an option to turn this on|off, and then leave it off by default 
(safer).

> 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