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

vtctlclient ApplyRoutingRules advertises a -dry-run option that does not exist #7958

Closed
aquarapid opened this issue Apr 26, 2021 · 0 comments · Fixed by #8197
Closed

vtctlclient ApplyRoutingRules advertises a -dry-run option that does not exist #7958

aquarapid opened this issue Apr 26, 2021 · 0 comments · Fixed by #8197

Comments

@aquarapid
Copy link
Contributor

E.g.:

$ vtctlclient -server 127.0.0.1:15999 ApplyRoutingRules -rules="$(cat /tmp/foo.json)" -dry-run
flag provided but not defined: -dry-run
Usage: ApplyRoutingRules {-rules=<rules> || -rules_file=<rules_file>} [-cells=c1,c2,...] [-skip_rebuild] [-dry-run]

Applies the VSchema routing rules.

  -cells value
        If specified, limits the rebuild to the cells, after upload. Ignored if skipRebuild is set.
  -rules string
        Specify rules as a string
  -rules_file string
        Specify rules in a file
  -skip_rebuild
        If set, do no rebuild the SrvSchema objects.
ApplyRoutingRules Error: rpc error: code = Unknown desc = flag provided but not defined: -dry-run

From the usage, it can be seen that a -dry-run option is advertised; but it does not actually exist, as a glance at the Vitess source will also show.

The documentation also refers to this in various places, e.g. https://vitess.io/docs/reference/features/schema-routing-rules/#applyroutingrules

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants