Skip to content

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

Merged
kostasrim merged 2 commits intomainfrom
kpr10
Jan 20, 2025
Merged

fix: hiredis requires df to report version >7.4#4474
kostasrim merged 2 commits intomainfrom
kpr10

Conversation

@kostasrim
Copy link
Copy Markdown
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

pytest-timeout==2.2.0
asyncio==3.4.3
fakeredis[json]==2.26.2
hiredis==2.4.0
Copy link
Copy Markdown
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
Copy Markdown
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
namespace {

const auto kRedisVersion = "7.2.0";
const auto kRedisVersion = "7.4.0";
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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
@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