[ https://issues.apache.org/jira/browse/CAMEL-20767?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17846277#comment-17846277 ]
Dylan Piergies commented on CAMEL-20767: ---------------------------------------- While implementing a workaround to this issue, it was also noticed that {{SpringRedisIdempotentRepository#doStart}} also executes the statement {{{}this.redisTemplate.getConnectionFactory().getConnection().flushDb();{}}}. Could this behaviour be reviewed when this issue is looked at? Flushing the Redis DB does not seem like a reasonable behaviour to me, since the DB may well be shared by other applications (or indeed by multiple replicas of the same application). We would not want to lose our idempotency cache when a container gets restarted or a scale-up is triggered, which I believe would be the effect of the current behaviour. > camel-spring-redis - Creating SpringRedisIdempotentRepository via SB should > be possible > --------------------------------------------------------------------------------------- > > Key: CAMEL-20767 > URL: https://issues.apache.org/jira/browse/CAMEL-20767 > Project: Camel > Issue Type: Bug > Components: camel-spring-redis > Affects Versions: 4.5.0 > Reporter: Claus Ibsen > Assignee: Claus Ibsen > Priority: Minor > Fix For: 4.7.0 > > > https://github.com/apache/camel/pull/13491#pullrequestreview-2054565755 -- This message was sent by Atlassian Jira (v8.20.10#820010)