-
Notifications
You must be signed in to change notification settings - Fork 64
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
Core + Py: add allow_non_covered_slots to ClusterScan and related commands #2814
Merged
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
avifenesh
added
Feature
Additional feature, big or small
All Wrappers issue
Issue relevant to all wrrappers.
1_2_1_candidate
labels
Dec 14, 2024
avifenesh
changed the title
Go: add allow_non_covered_slots to ClusterScan and related commands
Core + Py: add allow_non_covered_slots to ClusterScan and related commands
Dec 14, 2024
🎉 |
5 tasks
avifenesh
force-pushed
the
Feature-dummyScan
branch
4 times, most recently
from
December 14, 2024 23:04
0b0c077
to
85ddec0
Compare
avifenesh
force-pushed
the
Feature-dummyScan
branch
4 times, most recently
from
December 18, 2024 11:37
c4156b2
to
29024eb
Compare
avifenesh
commented
Dec 18, 2024
avifenesh
commented
Dec 18, 2024
avifenesh
commented
Dec 18, 2024
avifenesh
commented
Dec 18, 2024
avifenesh
commented
Dec 18, 2024
avifenesh
commented
Dec 18, 2024
eifrah-aws
approved these changes
Dec 19, 2024
avifenesh
force-pushed
the
Feature-dummyScan
branch
from
December 22, 2024 09:52
04638b7
to
f72a04b
Compare
Signed-off-by: avifenesh <[email protected]>
Signed-off-by: avifenesh <[email protected]>
avifenesh
force-pushed
the
Feature-dummyScan
branch
from
December 22, 2024 10:54
f72a04b
to
a83f62d
Compare
…an functionality Signed-off-by: avifenesh <[email protected]>
avifenesh
force-pushed
the
Feature-dummyScan
branch
from
December 22, 2024 11:01
a83f62d
to
0bf56e3
Compare
…ests Signed-off-by: avifenesh <[email protected]>
@raphaelauv we are hopefully going to release it as a patch this week. |
6 tasks
niharikabhavaraju
pushed a commit
to niharikabhavaraju/valkey-glide
that referenced
this pull request
Dec 29, 2024
…mands (valkey-io#2814) * added to core and python the option to scan uncoverd slots in a cluster Signed-off-by: avifenesh <[email protected]> * addresed comments Signed-off-by: avifenesh <[email protected]> * Refactor slot scanning logic and improve test coverage for cluster scan functionality Signed-off-by: avifenesh <[email protected]> * Refactor cluster readiness check and enhance scan error handling in tests Signed-off-by: avifenesh <[email protected]> --------- Signed-off-by: avifenesh <[email protected]>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
1_2_1_candidate
All Wrappers issue
Issue relevant to all wrrappers.
Feature
Additional feature, big or small
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This pull request focuses on refactoring and simplifying the
cluster_scan
functionality in theglide-core/redis-rs
library and adding allow non cover slots functionality to the core and py. Other important changes include removing redundant methods, consolidating thecluster_scan
functions, and updating the related tests.Refactoring and simplification:
glide-core/redis-rs/redis/src/cluster_async/mod.rs
: Removed thecluster_scan_with_pattern
method and consolidated its functionality into thecluster_scan
method. Updated thecluster_scan
method to use theClusterScanArgs
struct for arguments. [1] [2]glide-core/redis-rs/redis/src/cluster_async/mod.rs
: Removed redundant methods such asget_address_from_slot
andcheck_if_all_slots_covered
. Renamed methods for clarity, e.g.,get_address_epoch
toaddress_epoch
andget_slots_of_address
toslots_of_address
. [1] [2] [3] [4]Error handling improvements:
glide-core/redis-rs/redis/src/cluster_async/mod.rs
: Enhanced error messages for better clarity when sending and receiving commands in themap_err
andunwrap_or_else
methods. [1] [2]Test updates:
glide-core/redis-rs/redis/tests/test_cluster_scan.rs
: Updated tests to use the newClusterScanArgs
struct and added tests for scanning with slot migration and handling missing slots. [1] [2] [3] [4] [5] [6] [7] [8]These changes aim to streamline the codebase, improve error handling, and ensure the tests are up-to-date with the new functionality.
Issue link
This Pull Request is linked to issue #2436
Checklist
Before submitting the PR make sure the following are checked: