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

asking / command can be separated on cluster redirect. #2713

Closed
wants to merge 2 commits into from

Conversation

sjpotter
Copy link
Contributor

@sjpotter sjpotter commented Mar 5, 2024

this handles normal commands, but it doesn't handle the multi (exec or pipeline) cases.

unsure if pipeline makes sense in the context of cluster because of this (i.e. can get exception in middle, and will have no idea which commands were executed). Handling pipeline might require a total rewrite.

to handle multi, I think we will have to pass an optional chainId into the executeMulti(), and only set chainId if it's undefined. With multi, it either all executes or none of it executes, so an exception will be meaningful.

this handles normal commands, but it doesn't handle the multi (exec or pipeline) cases.

unsure if pipeline makes sense in the context of cluster because of this (i.e. can get exception in middle, and will have no idea which commands were executed).  Handling pipeline might require a total rewrite.

to handle multi, I think we will have to pass an optional chainId into the executeMulti(), and only set chainId if it's undefined.  With multi, it either all executes or none of it executes, so an exception will be meaningful.
@sjpotter sjpotter marked this pull request as ready for review March 5, 2024 08:52
@sjpotter sjpotter requested a review from leibale March 5, 2024 08:52
still unsure how we handle pipeline.  I'd argue that pipeline cant work effectively in cluster.
@leibale
Copy link
Collaborator

leibale commented Apr 2, 2024

already part of #2716

@leibale leibale closed this Apr 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants