spring-data-redis icon indicating copy to clipboard operation
spring-data-redis copied to clipboard

[BUG] Transaction error handler for @Transactional annotation work wrong

Open 1000happiness opened this issue 3 years ago • 2 comments

The normal redis server allways reply OK for MULTI command. But when I use a proxy with no multi command support, the redisTemplate will be caught in error state.

In specific, after the proxy reply a standard error reply (like "-ERR, unknow command"), the redisTemplate will maintain an error conenction with redis, and dispatch a little request command in this connection. Then the redisTemplate will IGNORE any reply in this error connection.

In conclusion, the redisTemplate do not catch error reply for multi command correctly when using it @Transactional annotation.

1000happiness avatar Jul 11 '22 05:07 1000happiness

You must not use transactional Redis support if you use a server (or middleware) that does not support transactions. Can you provide a reproducer or further details so we can investigate whether we can improve something on our side?

mp911de avatar Aug 08 '22 07:08 mp911de

If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.

spring-projects-issues avatar Aug 15 '22 07:08 spring-projects-issues

Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.

spring-projects-issues avatar Aug 22 '22 07:08 spring-projects-issues