docs icon indicating copy to clipboard operation
docs copied to clipboard

migration: Add information about Vitess to TiDB migration

Open dveeden opened this issue 3 years ago • 18 comments

What is changed, added or deleted? (Required)

Related to:

  • https://github.com/pingcap/docs/pull/5782
  • https://github.com/pingcap/docs/issues/5718

Which TiDB version(s) do your changes apply to? (Required)

  • [x] master (the latest development version)
  • [ ] v5.1 (TiDB 5.1 versions)
  • [ ] v5.0 (TiDB 5.0 versions)
  • [ ] v4.0 (TiDB 4.0 versions)
  • [ ] v3.1 (TiDB 3.1 versions)
  • [ ] v3.0 (TiDB 3.0 versions)
  • [ ] v2.1 (TiDB 2.1 versions)

dveeden avatar Jun 14 '21 20:06 dveeden

[REVIEW NOTIFICATION]

This pull request has not been approved.

To complete the pull request process, please ask the reviewers in the list to review by filling /cc @reviewer in the comment. After your PR has acquired the required number of LGTMs, you can assign this pull request to the committer in the list by filling /assign @committer in the comment to help you merge this pull request.

The full list of commands accepted by this bot can be found here.

Reviewer can indicate their review by submitting an approval review. Reviewer can cancel approval by submitting a request changes review.

ti-chi-bot avatar Jun 14 '21 20:06 ti-chi-bot

Comments from @morgo from when this was part of another PR: https://github.com/pingcap/docs/pull/5782#discussion_r651015415

dveeden avatar Jun 14 '21 20:06 dveeden

Things to note:

  • The MySQL instances hosting the data for Vitess have a _vt schema. This is metadata and probably should be excluded.
  • The schema in the backend database has a vt_ prefix that should probably be removed. Not sure where in the process this should be done.

If we try to run dumpling directly on vtgate this happens:

[dvaneeden@dve-carbon local]$ tiup dumpling -P 15306
Starting component `dumpling`: /home/dvaneeden/.tiup/components/dumpling/v5.0.2/dumpling -P 15306
Release version: v5.0.2
Git commit hash: 95099237b7beb80f66efaac9f3e02bd01e68bcc2
Git branch:      heads/refs/tags/v5.0.2
Build timestamp: 2021-06-07 08:39:29Z
Go version:      go version go1.13 linux/amd64

[2021/06/17 14:27:16.486 +02:00] [INFO] [versions.go:55] ["Welcome to dumpling"] ["Release Version"=v5.0.2] ["Git Commit Hash"=95099237b7beb80f66efaac9f3e02bd01e68bcc2] ["Git Branch"=heads/refs/tags/v5.0.2] ["Build timestamp"="2021-06-07 08:39:29"] ["Go Version"="go version go1.13 linux/amd64"]
[2021/06/17 14:27:16.488 +02:00] [INFO] [config.go:600] ["detect server type"] [type=MySQL]
[2021/06/17 14:27:16.488 +02:00] [INFO] [config.go:619] ["detect server version"] [version=8.0.25]
[2021/06/17 14:27:16.488 +02:00] [INFO] [dump.go:83] ["begin to run Dump"] [conf="{\"s3\":{\"endpoint\":\"\",\"region\":\"\",\"storage-class\":\"\",\"sse\":\"\",\"sse-kms-key-id\":\"\",\"acl\":\"\",\"access-key\":\"\",\"secret-access-key\":\"\",\"provider\":\"\",\"force-path-style\":true,\"use-accelerate-endpoint\":false},\"gcs\":{\"endpoint\":\"\",\"storage-class\":\"\",\"predefined-acl\":\"\",\"credentials-file\":\"\"},\"AllowCleartextPasswords\":false,\"SortByPk\":true,\"NoViews\":true,\"NoHeader\":false,\"NoSchemas\":false,\"NoData\":false,\"CompleteInsert\":false,\"TransactionalConsistency\":true,\"EscapeBackslash\":true,\"DumpEmptyDatabase\":true,\"PosAfterConnect\":false,\"CompressType\":0,\"Host\":\"127.0.0.1\",\"Port\":15306,\"Threads\":4,\"User\":\"root\",\"Security\":{\"CAPath\":\"\",\"CertPath\":\"\",\"KeyPath\":\"\"},\"LogLevel\":\"info\",\"LogFile\":\"\",\"LogFormat\":\"text\",\"OutputDirPath\":\"./export-2021-06-17T14:27:16+02:00\",\"StatusAddr\":\":8281\",\"Snapshot\":\"\",\"Consistency\":\"flush\",\"CsvNullValue\":\"\\\\N\",\"SQL\":\"\",\"CsvSeparator\":\",\",\"CsvDelimiter\":\"\\\"\",\"Databases\":[],\"Where\":\"\",\"FileType\":\"sql\",\"ServerInfo\":{\"HasTiKV\":false,\"ServerType\":1,\"ServerVersion\":\"8.0.25\"},\"Rows\":0,\"ReadTimeout\":900000000000,\"TiDBMemQuotaQuery\":0,\"FileSize\":0,\"StatementSize\":1000000,\"SessionParams\":{},\"Tables\":null}"]
[2021/06/17 14:27:16.490 +02:00] [ERROR] [main.go:77] ["dump failed error stack info"] [error="sql: START TRANSACTION /*!40108 WITH CONSISTENT SNAPSHOT */: Error 1105: syntax error at position 55 near 'WITH'"] [errorVerbose="Error 1105: syntax error at position 55 near 'WITH'\nsql: START TRANSACTION /*!40108 WITH CONSISTENT SNAPSHOT */\ngithub.com/pingcap/dumpling/v4/export.createConnWithConsistency\n\tgithub.com/pingcap/dumpling@/v4/export/sql.go:587\ngithub.com/pingcap/dumpling/v4/export.(*Dumper).Dump\n\tgithub.com/pingcap/dumpling@/v4/export/dump.go:119\nmain.main\n\tgithub.com/pingcap/dumpling@/cmd/dumpling/main.go:74\nruntime.main\n\truntime/proc.go:203\nruntime.goexit\n\truntime/asm_amd64.s:1357"]

dump failed: sql: START TRANSACTION /*!40108 WITH CONSISTENT SNAPSHOT */: Error 1105: syntax error at position 55 near 'WITH'
Error: run `/home/dvaneeden/.tiup/components/dumpling/v5.0.2/dumpling` (wd:/home/dvaneeden/.tiup/data/SaaugB3) failed: exit status 1

Even with --consistency none this happens

dveeden avatar Jun 17 '21 12:06 dveeden

Removed the needs-cherry-pick-release-6.3 label because the v6.3 docs have been archived at https://docs-archive.pingcap.com/tidb/v6.3 and will no longer receive new updates.

qiancai avatar Feb 24 '23 11:02 qiancai

@dveeden: PR needs rebase.

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

ti-chi-bot avatar Feb 24 '23 11:02 ti-chi-bot

Removed the needs-cherry-pick-release-6.4 label because the v6.4 docs have been archived at https://docs-archive.pingcap.com/tidb/v6.4 and will no longer receive new updates.

qiancai avatar Apr 06 '23 07:04 qiancai

Removed the needs-cherry-pick-release-6.6 label because the v6.6 docs have been archived at https://docs-archive.pingcap.com/tidb/v6.6 and will no longer receive new updates.

qiancai avatar Jul 07 '23 06:07 qiancai

@qiancai we can't use mermaid for docs like on github, right?

dveeden avatar Nov 17 '23 08:11 dveeden

vitess_to_tidb.zip

Files from Dia

dveeden avatar Nov 17 '23 08:11 dveeden

[LGTM Timeline notifier]

Timeline:

  • 2023-11-17 09:28:35.491006828 +0000 UTC m=+4414113.078116958: :ballot_box_with_check: agreed by lance6716.

ti-chi-bot[bot] avatar Nov 17 '23 09:11 ti-chi-bot[bot]

@winoros: adding LGTM is restricted to approvers and reviewers in OWNERS files.

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

ti-chi-bot[bot] avatar Nov 20 '23 13:11 ti-chi-bot[bot]

@qiancai we can't use mermaid for docs like on github, right?

I am not sure. @Yuiham, would you please check? Thanks.

qiancai avatar Nov 29 '23 06:11 qiancai

@qiancai we can't use mermaid for docs like on github, right?

We can't, because the current tool for generating PDFs from docs doesn't support Mermaid.

Yuiham avatar Nov 29 '23 07:11 Yuiham

@qiancai we can't use mermaid for docs like on github, right?

We can't, because the current tool for generating PDFs from docs doesn't support Mermaid.

I've created https://github.com/pingcap/docs/issues/15560 for this

dveeden avatar Nov 30 '23 07:11 dveeden

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: Once this PR has been reviewed and has the lgtm label, please ask for approval from qiancai, ensuring that each of them provides their approval before proceeding. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment Approvers can cancel approval by writing /approve cancel in a comment

ti-chi-bot[bot] avatar Mar 05 '24 12:03 ti-chi-bot[bot]

@Frank945946 would you please take a look at this PR? Thanks.

qiancai avatar Apr 12 '24 07:04 qiancai

@Frank945946: adding LGTM is restricted to approvers and reviewers in OWNERS files.

In response to this:

Instructions for interacting with me using PR comments are available here. If you have questions or suggestions related to my behavior, please file an issue against the kubernetes/test-infra repository.

ti-chi-bot[bot] avatar Apr 12 '24 09:04 ti-chi-bot[bot]