Skip to content

Fix: resolve crash when commands_map is set #86

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

Merged
merged 6 commits into from
Apr 7, 2021

Conversation

kares
Copy link
Contributor

@kares kares commented Apr 1, 2021

The plugin changes here were not compatible with Redis 4 (due redis.client usage).
Likely missed while upgrading from Redis 3.x - probably due mocking the redis interface completely in tests.

Setting commands_map => ... for the plugin never really worked (see #80 for details).

The updated interface is based on Redis 4.0.1.

Specs look a bit ugly but should be less "mocky" than before, they will likely need more 🍼.

resolves #80

@kares kares marked this pull request as ready for review April 6, 2021 18:13
@kares kares changed the title Fix: do not rely on redis.client anymore Fix: resolve crash when commands_map is set Apr 6, 2021
Copy link
Contributor

@yaauie yaauie left a comment

Choose a reason for hiding this comment

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

🎉 good cleanup in the specs.

I've left one nit about commented-out code, but otherwise LGTM.

Co-authored-by: Ry Biesemeyer <yaauie@users.noreply.github.com>
@kares kares merged commit dba90d8 into logstash-plugins:master Apr 7, 2021
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.

commands_map broken after switch to redis ~4
4 participants