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: hiredis requires df to report version >7.4 #4474

Merged
merged 2 commits into from
Jan 20, 2025
Merged

fix: hiredis requires df to report version >7.4 #4474

merged 2 commits into from
Jan 20, 2025

Conversation

kostasrim
Copy link
Contributor

@kostasrim kostasrim commented Jan 17, 2025

hiredis checks for redis version and requires to be greater than 7.4. Dragonfly reports 7.2 and the library throws an error.

  • bump up redis version in info command
  • add compatibility test
  • bump up py dependencies
  • fix warnings and deprecated functions

Resolves #4473

@@ -26,3 +26,4 @@ pytest-icdiff==0.8
pytest-timeout==2.2.0
asyncio==3.4.3
fakeredis[json]==2.26.2
hiredis==2.4.0
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Throwing this here, hiredis 3.0 is incompatible with redis 5.2 (latest release).

TODO bump up the versions once they are fixed

Copy link
Contributor Author

@kostasrim kostasrim Jan 17, 2025

Choose a reason for hiding this comment

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

@kostasrim kostasrim self-assigned this Jan 17, 2025
@@ -230,7 +230,7 @@ using strings::HumanReadableNumBytes;

namespace {

const auto kRedisVersion = "7.2.0";
const auto kRedisVersion = "7.4.0";
Copy link
Collaborator

Choose a reason for hiding this comment

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

consider exposing it in common.h as a constant (or other header file) and then reference it in tests reduce amount of manual changes

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's only used in dragonfly_test.cc so not much we gain here. There rest are python changes because the newer versions of the lib deprecated some of the old functions.

I am merging this and will follow up on this

Copy link
Collaborator

@romange romange left a comment

Choose a reason for hiding this comment

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

LGTM

@kostasrim kostasrim merged commit b017cdd into main Jan 20, 2025
9 checks passed
@kostasrim kostasrim deleted the kpr10 branch January 20, 2025 08:38
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.

dragonfly reports redis_version:7.2.0 which is incompatible with hiredis
2 participants