-
Couldn't load subscription status.
- Fork 2.6k
Apply policies for normal and pipeline mode #3818
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
base: feat/request-response-policies
Are you sure you want to change the base?
Conversation
…o vv-apply-policies
…is-py into vv-apply-policies
| Returns a list of nodes for commands with a special policy. | ||
| """ | ||
| if not self._aggregate_nodes: | ||
| raise RedisClusterException('Cannot execute FT.CURSOR commands without FT.AGGREGATE') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess this exception reports relation with FT.CURSOR and FT.AGGREGATE, because the Special policy is related just to those two, but if this type of policy is extended to cover additional commands, this error message might become confusing.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For special cases we would anyway need something like separate mapping or strategies for each special command when they would appear. But for now, we don't know if there will be any soon, so I didn't implement it
Pull Request check-list
Please make sure to review and check all of these items:
NOTE: these things are not required to open a PR and can be done
afterwards / while the PR is open.
Description of change
Please provide a description of the change here.