-
Notifications
You must be signed in to change notification settings - Fork 1k
Description
Feature Request
Is your feature request related to a problem? Please describe
These problems may be caused by cancelCommandsOnReconnectFailure
being set to true
.
#1753
#1645
#915
Describe the solution you'd like
When cancelCommandsOnReconnectFailure
is true
, reset()
may be called if reconnect fails.
The reset()
command can cause serious issue, as pointed out in these issues.
#907 (comment)
https://github.com/lettuce-io/lettuce-core/blob/ee3e70f613074531aef9874a01bbbeb72dbd2cbb/src/main/java/io/lettuce/core/RedisChannelWriter.java#L73
However, the cancelCommandsOnReconnectFailure
option does not any warnings about the possibility of causing a protocol offset now.
https://github.com/lettuce-io/lettuce-core/blob/cda3be6b9477da790365ad098c6e39c8687f5002/src/main/java/io/lettuce/core/ClientOptions.java#L203
https://github.com/lettuce-io/lettuce-core/wiki/Client-Options
Therefore, at the least, these possibility should be fully explained.