Skip to content

Node allow uncovered slots cscan - #2815

Merged
avifenesh merged 7 commits into
valkey-io:mainfrom
avifenesh:Node@allow-ucslots-Cscan
Dec 22, 2024
Merged

avifenesh merged 7 commits into
valkey-io:mainfrom
avifenesh:Node@allow-ucslots-Cscan

Conversation

@avifenesh

@avifenesh avifenesh commented Dec 14, 2024

Copy link
Copy Markdown
Member

This PR is just node code, please check the last commit only.
For python and Rust please address in PR it rebased over.

Rebased over #2814
Adding uncovered slots cluster scan option to node

Issue link

This Pull Request is linked to issue #2689

Checklist

Before submitting the PR make sure the following are checked:

  • This Pull Request is related to one issue.
  • Commit message has a detailed description of what changed and why.
  • Tests are added or updated.
  • [] CHANGELOG.md and documentation files are updated.
  • Destination branch is correct - main or release
  • Commits will be squashed upon merging.

@avifenesh
avifenesh requested a review from a team as a code owner December 14, 2024 17:20
@avifenesh avifenesh self-assigned this Dec 14, 2024
@avifenesh
avifenesh requested a review from jhpung December 14, 2024 17:20
@avifenesh avifenesh added node 🐢 Node.js wrapper Feature ✨ Additional feature, big or small labels Dec 14, 2024
@avifenesh avifenesh added this to the 1.2.1 milestone Dec 14, 2024
@avifenesh
avifenesh force-pushed the Node@allow-ucslots-Cscan branch 7 times, most recently from dfa092e to c7b68f0 Compare December 14, 2024 23:04
@ikolomi ikolomi removed this from the 1.2.1 milestone Dec 15, 2024
@avifenesh
avifenesh force-pushed the Node@allow-ucslots-Cscan branch 2 times, most recently from 05aaab1 to 9c6b040 Compare December 15, 2024 10:46

@jhpung jhpung left a comment

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.

LGTM

@Yury-Fridlyand Yury-Fridlyand left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Please add a changelog

Comment thread node/src/Commands.ts
Comment thread node/tests/TestUtilities.ts
Comment thread node/tests/ScanTest.test.ts
Comment thread glide-core/redis-rs/redis/src/cluster_async/mod.rs
Comment thread glide-core/redis-rs/redis/src/commands/cluster_scan.rs Outdated
Comment thread glide-core/redis-rs/redis/src/commands/cluster_scan.rs
Comment thread glide-core/redis-rs/redis/src/commands/cluster_scan.rs
Comment thread glide-core/redis-rs/redis/src/commands/cluster_scan.rs
Comment thread glide-core/redis-rs/redis/src/commands/cluster_scan.rs
Comment thread glide-core/redis-rs/redis/src/commands/cluster_scan.rs
Comment thread glide-core/redis-rs/redis/src/commands/cluster_scan.rs Outdated
Comment thread glide-core/redis-rs/redis/src/commands/cluster_scan.rs Outdated
Comment thread python/python/tests/test_scan.py
Comment thread python/python/tests/test_scan.py
@avifenesh
avifenesh force-pushed the Node@allow-ucslots-Cscan branch 4 times, most recently from e0b2e32 to 2b772ab Compare December 22, 2024 11:30
Signed-off-by: avifenesh <aviarchi1994@gmail.com>
avifenesh and others added 4 commits December 22, 2024 11:49
Signed-off-by: avifenesh <aviarchi1994@gmail.com>
Signed-off-by: jhpung <jhpung.dev@gmail.com>
Signed-off-by: jhpung <jhpung.dev@gmail.com>
…rClient

Signed-off-by: avifenesh <aviarchi1994@gmail.com>
@avifenesh
avifenesh force-pushed the Node@allow-ucslots-Cscan branch from 2b772ab to a844c88 Compare December 22, 2024 11:51
… option

Signed-off-by: avifenesh <aviarchi1994@gmail.com>
@avifenesh
avifenesh force-pushed the Node@allow-ucslots-Cscan branch from 57c2c6c to 6518cf3 Compare December 22, 2024 12:02
…in scan tests

Signed-off-by: avifenesh <aviarchi1994@gmail.com>
@avifenesh
avifenesh merged commit 210ba24 into valkey-io:main Dec 22, 2024
yipin-chen pushed a commit that referenced this pull request Dec 24, 2024
* addresed comments

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* Go: add allow_non_covered_slots to ClusterScan and related commands

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* feat: Implement continuous slot scanning until next unscanned slot

Signed-off-by: jhpung <jhpung.dev@gmail.com>

* fix: improve slot scanning logic when address not found

Signed-off-by: jhpung <jhpung.dev@gmail.com>

* add allowNonCoveredSlots option to ScanOptions and update GlideClusterClient

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* test: add tests for GlideClusterClient scan with allowNonCoveredSlots option

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* refactor: enhance cluster readiness check and improve error handling in scan tests

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

---------

Signed-off-by: avifenesh <aviarchi1994@gmail.com>
Signed-off-by: jhpung <jhpung.dev@gmail.com>
Co-authored-by: jhpung <jhpung.dev@gmail.com>
Signed-off-by: Yi-Pin Chen <yi-pin.chen@improving.com>
niharikabhavaraju pushed a commit to niharikabhavaraju/valkey-glide that referenced this pull request Dec 29, 2024
* addresed comments

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* Go: add allow_non_covered_slots to ClusterScan and related commands

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* feat: Implement continuous slot scanning until next unscanned slot

Signed-off-by: jhpung <jhpung.dev@gmail.com>

* fix: improve slot scanning logic when address not found

Signed-off-by: jhpung <jhpung.dev@gmail.com>

* add allowNonCoveredSlots option to ScanOptions and update GlideClusterClient

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* test: add tests for GlideClusterClient scan with allowNonCoveredSlots option

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* refactor: enhance cluster readiness check and improve error handling in scan tests

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

---------

Signed-off-by: avifenesh <aviarchi1994@gmail.com>
Signed-off-by: jhpung <jhpung.dev@gmail.com>
Co-authored-by: jhpung <jhpung.dev@gmail.com>
@avifenesh
avifenesh deleted the Node@allow-ucslots-Cscan branch February 9, 2025 21:37
affonsov pushed a commit that referenced this pull request Aug 21, 2026
* addresed comments

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* Go: add allow_non_covered_slots to ClusterScan and related commands

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* feat: Implement continuous slot scanning until next unscanned slot

Signed-off-by: jhpung <jhpung.dev@gmail.com>

* fix: improve slot scanning logic when address not found

Signed-off-by: jhpung <jhpung.dev@gmail.com>

* add allowNonCoveredSlots option to ScanOptions and update GlideClusterClient

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* test: add tests for GlideClusterClient scan with allowNonCoveredSlots option

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

* refactor: enhance cluster readiness check and improve error handling in scan tests

Signed-off-by: avifenesh <aviarchi1994@gmail.com>

---------

Signed-off-by: avifenesh <aviarchi1994@gmail.com>
Signed-off-by: jhpung <jhpung.dev@gmail.com>
Co-authored-by: jhpung <jhpung.dev@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Feature ✨ Additional feature, big or small node 🐢 Node.js wrapper

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

6 participants