Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Redis <=6.2 throwing errors when trying to clear the command queue in pooling mode. #1763

Merged
merged 7 commits into from
Aug 2, 2023

Conversation

Half-Shot
Copy link
Contributor

Fixes #1761

Ultimately the problem here is that we failed to specify a minimum Redis version. If you are using less than 6.2, you won't be able to clear the command stream effectively. To get around this for now, we're reverting to previous behaviour of just setting an absolute maximum message count for the stream when running on older Redis versions.

@Half-Shot Half-Shot requested a review from a team as a code owner August 1, 2023 09:51
Copy link
Contributor

@tadzik tadzik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some concerns. I like the refactoring!

src/pool-service/CommandReader.ts Outdated Show resolved Hide resolved
src/pool-service/CommandReader.ts Outdated Show resolved Hide resolved
@Half-Shot Half-Shot merged commit 8953058 into develop Aug 2, 2023
15 checks passed
@Half-Shot Half-Shot deleted the hs/support-redis6.0 branch August 2, 2023 08:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Failed to trim commands from the IN/OUT stream ReplyError: ERR syntax error
2 participants