Dylan Piergies created CAMEL-20768:
--------------------------------------

             Summary: 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.6.0, 4.5.0
            Reporter: Dylan Piergies


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