Skip to content

cancelCommandsOnReconnectFailure should have appropriate warnings. #1787

@tawAsh1

Description

@tawAsh1

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    for: team-attentionAn issue we need to discuss as a team to make progresstype: taskA general task

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions