From d5f22b4c9cd6a7a0e971f8a9d21b98f1e821dee1 Mon Sep 17 00:00:00 2001 From: Rohit Nayak Date: Thu, 31 Aug 2023 17:03:28 +0200 Subject: [PATCH 1/3] Document --no-routing-rules in v18 Signed-off-by: Rohit Nayak --- .../docs/18.0/reference/vreplication/movetables.md | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/content/en/docs/18.0/reference/vreplication/movetables.md b/content/en/docs/18.0/reference/vreplication/movetables.md index 768af7dcc..865e73ed0 100644 --- a/content/en/docs/18.0/reference/vreplication/movetables.md +++ b/content/en/docs/18.0/reference/vreplication/movetables.md @@ -21,7 +21,7 @@ MoveTables -- [--source=] [--tables=] [--cells=] [--tablet_types=] [--all] [--exclude=] [--auto_start] [--stop_after_copy] [--timeout=timeoutDuration] [--reverse_replication] [--keep_data] [--keep_routing_rules] [--on-ddl=] [--source_time_zone=] - [--initialize-target-sequences] + [--initialize-target-sequences] [--no-routing-rules] ``` @@ -290,6 +290,17 @@ We caution against against using `EXEC` or `EXEC_IGNORE` for the following reaso +#### --no-routing-rules +**optional**\ +**default** false + +
+Do not create routing rules for the tables being moved when the workflow is created. This implies that you should +not use global routing or send traffic to the target keyspace through a vtgate. +See https://github.com/vitessio/vitess/pull/13895 and https://github.com/vitessio/vitess/issues/13851 for a use-case +and more details. +
+ #### --rename_tables **optional**\ **default** false From 896c3ab36cc716c723f54cc43fbe8e16d6e9e685 Mon Sep 17 00:00:00 2001 From: Rohit Nayak Date: Thu, 31 Aug 2023 17:07:04 +0200 Subject: [PATCH 2/3] vtctld docs Signed-off-by: Rohit Nayak --- .../vtctldclient_MoveTables/vtctldclient_MoveTables_create.md | 1 + 1 file changed, 1 insertion(+) diff --git a/content/en/docs/18.0/reference/programs/vtctldclient/vtctldclient_MoveTables/vtctldclient_MoveTables_create.md b/content/en/docs/18.0/reference/programs/vtctldclient/vtctldclient_MoveTables/vtctldclient_MoveTables_create.md index 85bdd2c70..adedb041e 100644 --- a/content/en/docs/18.0/reference/programs/vtctldclient/vtctldclient_MoveTables/vtctldclient_MoveTables_create.md +++ b/content/en/docs/18.0/reference/programs/vtctldclient/vtctldclient_MoveTables/vtctldclient_MoveTables_create.md @@ -25,6 +25,7 @@ vtctldclient --server localhost:15999 movetables --workflow commerce2customer -- --defer-secondary-keys Defer secondary index creation for a table until after it has been copied --exclude-tables strings Source tables to exclude from copying -h, --help help for create + --no-routing-rules (Advanced) MoveTables Create only. Do not create routing rules while creating the workflow. See the reference documentation for limitations if you use this flag. --on-ddl string What to do when DDL is encountered in the VReplication stream. Possible values are IGNORE, STOP, EXEC, and EXEC_IGNORE (default "IGNORE") --source-keyspace string Keyspace where the tables are being moved from (required) --source-shards strings Source shards to copy data from when performing a partial MoveTables (experimental) From 2ad21e96945149d3ed9f764a042a79200118d69b Mon Sep 17 00:00:00 2001 From: Rohit Nayak Date: Thu, 31 Aug 2023 17:35:33 +0200 Subject: [PATCH 3/3] Remove unnecessary text Signed-off-by: Rohit Nayak --- .../vtctldclient_MoveTables/vtctldclient_MoveTables_create.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/content/en/docs/18.0/reference/programs/vtctldclient/vtctldclient_MoveTables/vtctldclient_MoveTables_create.md b/content/en/docs/18.0/reference/programs/vtctldclient/vtctldclient_MoveTables/vtctldclient_MoveTables_create.md index adedb041e..2f0a071f5 100644 --- a/content/en/docs/18.0/reference/programs/vtctldclient/vtctldclient_MoveTables/vtctldclient_MoveTables_create.md +++ b/content/en/docs/18.0/reference/programs/vtctldclient/vtctldclient_MoveTables/vtctldclient_MoveTables_create.md @@ -25,7 +25,7 @@ vtctldclient --server localhost:15999 movetables --workflow commerce2customer -- --defer-secondary-keys Defer secondary index creation for a table until after it has been copied --exclude-tables strings Source tables to exclude from copying -h, --help help for create - --no-routing-rules (Advanced) MoveTables Create only. Do not create routing rules while creating the workflow. See the reference documentation for limitations if you use this flag. + --no-routing-rules (Advanced) Do not create routing rules while creating the workflow. See the reference documentation for limitations if you use this flag. --on-ddl string What to do when DDL is encountered in the VReplication stream. Possible values are IGNORE, STOP, EXEC, and EXEC_IGNORE (default "IGNORE") --source-keyspace string Keyspace where the tables are being moved from (required) --source-shards strings Source shards to copy data from when performing a partial MoveTables (experimental)