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 KeyError in async cluster - initialize before execute multi key commands #2439

Merged
merged 3 commits into from
Oct 30, 2022

Conversation

dvora-h
Copy link
Collaborator

@dvora-h dvora-h commented Oct 30, 2022

Pull Request check-list

Please make sure to review and check all of these items:

  • Does $ tox pass with this change (including linting)?
  • Do the CI tests pass with this change (enable it first in your forked repo and wait for the github action build to finish)?
  • Is the new or changed code fully tested?
  • Is a documentation update included (if this change modifies existing APIs, or introduces new ones)?
  • Is there an example added to the examples folder (if applicable)?
  • Was the change added to CHANGES file?

NOTE: these things are not required to open a PR and can be done
afterwards / while the PR is open.

Description of change

Fixes #2437

@dvora-h dvora-h added the bug Bug label Oct 30, 2022
@codecov-commenter
Copy link

codecov-commenter commented Oct 30, 2022

Codecov Report

Base: 92.04% // Head: 92.03% // Decreases project coverage by -0.01% ⚠️

Coverage data is based on head (ea74e03) compared to base (9a460c8).
Patch coverage: 100.00% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #2439      +/-   ##
==========================================
- Coverage   92.04%   92.03%   -0.02%     
==========================================
  Files         110      110              
  Lines       28735    28749      +14     
==========================================
+ Hits        26450    26460      +10     
- Misses       2285     2289       +4     
Impacted Files Coverage Δ
redis/commands/cluster.py 93.88% <100.00%> (+0.24%) ⬆️
tests/test_asyncio/test_cluster.py 97.29% <100.00%> (+<0.01%) ⬆️
tests/test_cluster.py 96.96% <0.00%> (-0.12%) ⬇️
tests/test_command_parser.py 93.87% <0.00%> (ø)
redis/commands/search/querystring.py 0.00% <0.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

@dvora-h dvora-h merged commit 9f3791f into redis:master Oct 30, 2022
@utkarshgupta137 utkarshgupta137 mentioned this pull request Oct 31, 2022
6 tasks
chayim pushed a commit that referenced this pull request Nov 21, 2022
…ommands (#2439)

* Fix KeyError in async cluster

* link to issue

* typo
dvora-h added a commit that referenced this pull request Nov 21, 2022
* fix is_connected (#2278)

* fix: workaround asyncio bug on connection reset by peer (#2259)

Fixes #2237

* Fix crash: key expire while search (#2270)

* fix expire while search

* sleep

* async_cluster: fix concurrent pipeline (#2280)

- each pipeline should create separate stacks for each node

* async_cluster: fix max_connections/ssl & improve args (#2217)

* async_cluster: fix max_connections/ssl & improve args

- set proper connection_class if ssl = True
- pass max_connections/connection_class to ClusterNode
- recreate startup_nodes to properly initialize
- pass parser_class to Connection instead of changing it in on_connect
- only pass redis_connect_func if read_from_replicas = True
- add connection_error_retry_attempts parameter
- skip is_connected check in acquire_connection as it is already checked in send_packed_command

BREAKING:
- RedisCluster args except host & port are kw-only now
- RedisCluster will no longer accept unknown arguments
- RedisCluster will no longer accept url as an argument. Use RedisCluster.from_url
- RedisCluster.require_full_coverage defaults to True
- ClusterNode args except host, port, & server_type are kw-only now

* async_cluster: remove kw-only requirement from client

Co-authored-by: dvora-h <67596500+dvora-h@users.noreply.github.com>

* More cherry picks to support latest module release

* Fix KeyError in async cluster - initialize before execute multi key commands (#2439)

* Fix KeyError in async cluster

* link to issue

* typo

* fixing lint

* fix json test

Co-authored-by: Mehdi ABAAKOUK <sileht@sileht.net>
Co-authored-by: Utkarsh Gupta <utkarshgupta137@gmail.com>
Co-authored-by: Chayim I. Kirshen <c@kirshen.com>
dvora-h added a commit that referenced this pull request Nov 21, 2022
…ommands (#2439)

* Fix KeyError in async cluster

* link to issue

* typo
@dvora-h dvora-h deleted the fix-async-cluster-keyerror branch June 18, 2023 00:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

KeyError in asyncio cluster get_node_from_slot
4 participants