RFC + Support of BACKUP and RESTORE statements#15274
Merged
sre-bot merged 10 commits intopingcap:masterfrom Apr 30, 2020
Merged
RFC + Support of BACKUP and RESTORE statements#15274sre-bot merged 10 commits intopingcap:masterfrom
sre-bot merged 10 commits intopingcap:masterfrom
Conversation
d35194b to
19fb519
Compare
99e3e22 to
87fb787
Compare
Contributor
Author
|
We have a dependency problem preventing the plugins to be run, which blocks the Required "idc-jenkins-ci-tidb/build" CI.
OTOH we can't upgrade the plugin's dependency to 1.14.0 before this PR is merged, because this would cause the version mismatch error in the other way, and blocks other PRs. |
Contributor
|
@kennytm merge failed. |
Contributor
|
/run-all-tests |
Contributor
|
@kennytm merge failed. |
Contributor
|
/run-all-tests |
Contributor
|
@kennytm merge failed. |
Contributor
Author
Take a rest. |
Contributor
Author
|
/merge |
Contributor
|
/run-all-tests |
Contributor
|
@kennytm merge failed. |
Contributor
Author
|
/merge |
Contributor
|
/run-all-tests |
Contributor
|
@kennytm merge failed. |
Contributor
Author
|
Contributor
Author
|
/merge |
Contributor
|
/run-all-tests |
Contributor
|
@kennytm merge failed. |
Contributor
Author
|
Contributor
Author
|
/merge |
Contributor
|
/run-all-tests |
Contributor
Author
|
/run-cherry-picker |
sre-bot
pushed a commit
to sre-bot/tidb
that referenced
this pull request
Apr 30, 2020
Contributor
|
cherry pick to release-4.0 in PR #16960 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What problem does this PR solve?
Support running BR inside TiDB directly.
What is changed and how it works?
Recognize the new
*ast.BRIEStmtin pingcap/parser#746, and forward to the library functions in BR. When we executeTiDB will spawn a new BR manager which backs up the database
tpccinto the provided storage. The query blocks until backup completes. Returns an empty set on success:and returns an error on failure:
BRIE tasks must be executed sequentially. Currently, for simplicity, tasks are queued in the local server only. In the future we make the entire cluster share the same queue.
Use SHOW BACKUP / SHOW RESTORE in another session to list the tasks
Use
KILL TIDB QUERY nto cancel a task.Check List
Tests
a simple tableW=30 TPC-C database (2 GB), drop it, and run restore from the archive.Code changes
Side effects
Related changes
Release note
Added the RESTORE statement to restore from the backup archive.(don't include into release note yet, do so after the entire feature is complete.)