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

Java: Add binary support to custom command. #2109

Merged

Conversation

Yury-Fridlyand
Copy link
Collaborator

And update docs for custom command in python and node clients.
Isn't a breaking change, because ReturnType/TResult already includes a mapping from string to ReturnType/TResult, which is equviavalent to ClusterResponse<ReturnType>/TClusterResponse[TResult].

@Yury-Fridlyand Yury-Fridlyand added the java issues and fixes related to the java client label Aug 9, 2024
@Yury-Fridlyand Yury-Fridlyand requested a review from a team as a code owner August 9, 2024 01:09
CHANGELOG.md Outdated Show resolved Hide resolved
*
* <p>The command will be routed to all primaries.
* subcommands, should be added as a separate value in <code>args</code>.<br>
* The command will be routed automatically based on the passed command's default request policy.
Copy link
Collaborator

Choose a reason for hiding this comment

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

Is this correct?
What about commands that don't have a default request policy?
Users may ask where to find this default request policy... which we can't provide except through the code.

Copy link
Collaborator

Choose a reason for hiding this comment

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

Copy link
Collaborator Author

@Yury-Fridlyand Yury-Fridlyand Aug 9, 2024

Choose a reason for hiding this comment

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

Yes, we should.
I copied this line from python/node docs.
Policy is defined in redis-rs in cluster_routing.rs

Yury-Fridlyand and others added 3 commits August 13, 2024 09:05
…ll/glide-for-redis into java/yuryf-valkey-206-custom-bin

Signed-off-by: Yury-Fridlyand <[email protected]>
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.

Most of this looks fine, but Andrew's comment on the TODO should be addressed.

@Yury-Fridlyand Yury-Fridlyand merged commit c550a43 into valkey-io:main Aug 15, 2024
17 checks passed
@Yury-Fridlyand Yury-Fridlyand deleted the java/yuryf-valkey-206-custom-bin branch August 15, 2024 19:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
java issues and fixes related to the java client
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants