question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

cancelCommandsOnReconnectFailure should have appropriate warnings.

See original GitHub issue

Feature Request

Is your feature request related to a problem? Please describe

These problems may be caused by cancelCommandsOnReconnectFailure being set to true. https://github.com/lettuce-io/lettuce-core/issues/1753 https://github.com/lettuce-io/lettuce-core/issues/1645 https://github.com/lettuce-io/lettuce-core/issues/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.

https://github.com/lettuce-io/lettuce-core/issues/907#issuecomment-434392684 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.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Reactions:20
  • Comments:5 (4 by maintainers)

github_iconTop GitHub Comments

0reactions
mp911decommented, Jul 2, 2021

Thanks a lot. We’re going to mention it in the release notes properly.

Read more comments on GitHub >

github_iconTop Results From Across the Web

lettuce-io/Lobby - Gitter
Hi there, does anybody have experiences an empty sync().acllog() query result when working with sentinel? I have a service using lettuce to grep...
Read more >
Hazard and Risk - Hazard Control : OSH Answers
A review will identify areas that may need more improvement or refinement. It is important to know if all workplace hazards are identified,...
Read more >
Hierarchy of Controls | NIOSH - CDC
The hierarchy of controls is a way of determining which actions will best control exposures. The hierarchy of controls has five levels of ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found