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

Add missing doc and tests for multi-key commands #1391

Merged
merged 17 commits into from May 17, 2024

Conversation

Yury-Fridlyand
Copy link
Collaborator

Issue #, if available:
N/A

Description of changes:

  • Add cross-slot notice for multi-key commands - which can handle it and which can not
  • Add tests
  • For all clients

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

* Add missing doc and tests.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Rework docs and tests.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* I HATE YOU SPOTLESS

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Experiment

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Experiment

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Experiment

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Experiment

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Experiment

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Experiment

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Experiment

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Experiment

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Linter

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

* Address PR comments.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

---------

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
…d_crossslot

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
@Yury-Fridlyand Yury-Fridlyand added python node java issues and fixes related to the java client docs Documentation labels May 7, 2024
@Yury-Fridlyand Yury-Fridlyand requested a review from a team as a code owner May 7, 2024 19:50
Copy link
Collaborator

@jonathanl-bq jonathanl-bq left a comment

Choose a reason for hiding this comment

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

Left some minor comments.

node/src/BaseClient.ts Outdated Show resolved Hide resolved
python/python/glide/async_commands/core.py Outdated Show resolved Hide resolved
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
@Yury-Fridlyand
Copy link
Collaborator Author

I wanted to emphasize hash slot, but then we decided not to do that in python client, so I removed it everywhere. Thank you for catching that.

…d_crossslot

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
@Yury-Fridlyand
Copy link
Collaborator Author

Should be merged after #1390

node/src/BaseClient.ts Outdated Show resolved Hide resolved
python/python/glide/async_commands/core.py Outdated Show resolved Hide resolved
python/python/glide/async_commands/core.py Outdated Show resolved Hide resolved
node/src/BaseClient.ts Outdated Show resolved Hide resolved
python/python/tests/test_async_client.py Outdated Show resolved Hide resolved
Yury-Fridlyand and others added 2 commits May 10, 2024 13:26
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

Co-authored-by: Aaron <69273634+aaron-congo@users.noreply.github.com>
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
python/python/glide/async_commands/core.py Outdated Show resolved Hide resolved
node/src/BaseClient.ts Outdated Show resolved Hide resolved
python/python/glide/async_commands/core.py Outdated Show resolved Hide resolved
python/python/glide/async_commands/core.py Outdated Show resolved Hide resolved
python/python/glide/async_commands/core.py Outdated Show resolved Hide resolved
Yury-Fridlyand and others added 3 commits May 10, 2024 16:59
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

Co-authored-by: Aaron <69273634+aaron-congo@users.noreply.github.com>
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
…d_crossslot

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
@Yury-Fridlyand Yury-Fridlyand marked this pull request as draft May 13, 2024 23:37
…d_crossslot

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
@Yury-Fridlyand Yury-Fridlyand marked this pull request as ready for review May 13, 2024 23:49
@Yury-Fridlyand
Copy link
Collaborator Author

@shohamazon please, review and merge if it is OK for you.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
@@ -2171,6 +2171,8 @@ public T zinterstore(
* To perform a <code>zinterstore</code> operation while specifying aggregation settings, use
* {@link #zinterstore(String, KeysOrWeightedKeys, Aggregate)}
*
* @apiNote When in cluster mode, <code>destination</code> and all <code>keysOrWeightedKeys</code>
Copy link
Member

Choose a reason for hiding this comment

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

Suggested change
* @apiNote When in cluster mode, <code>destination</code> and all <code>keysOrWeightedKeys</code>
* @apiNote When in cluster mode, <code>destination</code> and all keys <code>keysOrWeightedKeys</code>

Copy link
Member

Choose a reason for hiding this comment

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

why is this command the only one modified in this file? what about the other zinterstore and the rest of the commands?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Oh, that's a mistake - we don't add same-slot notice to transaction, because it is routed to a single node only.
We don't add that to docs in transaction on other clients too.
If you want me to add - please tell.

Copy link
Member

Choose a reason for hiding this comment

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

I think we should, but whatever you think right

Yury-Fridlyand and others added 4 commits May 15, 2024 21:19
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>

Co-authored-by: Shoham Elias <116083498+shohamazon@users.noreply.github.com>
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
…d_crossslot

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
@acarbonetto acarbonetto merged commit a2171ee into aws:main May 17, 2024
23 checks passed
@acarbonetto acarbonetto deleted the java/inter_yuryf_add_crossslot branch May 17, 2024 18:57
Yury-Fridlyand added a commit to Bit-Quill/glide-for-redis that referenced this pull request May 17, 2024
Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
acarbonetto pushed a commit that referenced this pull request May 17, 2024
Hotfix for #1391 - resolving conflict with #1419.

Signed-off-by: Yury-Fridlyand <yury.fridlyand@improving.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
docs Documentation java issues and fixes related to the java client node python testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

6 participants