This repository was archived by the owner on Jul 24, 2024. It is now read-only.
Merged
Conversation
Collaborator
Author
|
/run-all-tests |
1 similar comment
Collaborator
Author
|
/run-all-tests |
kennytm
reviewed
Apr 8, 2020
| run_br --pd $PD_ADDR backup db --db "$DB" -s "local://$TEST_DIR/$DB$TABLE" | ||
|
|
||
| run_sql "create table $DB.$INCREMENTAL_TABLE (a int primary key, b int unique);" | ||
| run_sql "insert into $DB.$INCREMENTAL_TABLE values (42, 42);" |
Collaborator
There was a problem hiding this comment.
please include a test case for CREATE TABLE … LIKE.
Collaborator
Author
There was a problem hiding this comment.
okay, add test case below
Collaborator
Author
|
/run-integration-test |
3 similar comments
Collaborator
Author
|
/run-integration-test |
Collaborator
Author
|
/run-integration-test |
Collaborator
Author
|
/run-integration-test |
Codecov Report
@@ Coverage Diff @@
## master #231 +/- ##
=======================================
Coverage 70.31% 70.31%
=======================================
Files 48 48
Lines 4743 4743
=======================================
Hits 3335 3335
Misses 966 966
Partials 442 442 Continue to review full report at Codecov.
|
kennytm
reviewed
Apr 10, 2020
Collaborator
Author
|
/run-integration-test |
Collaborator
Author
|
run-integration-test |
Collaborator
Author
|
/run-integration-test |
kennytm
approved these changes
Apr 11, 2020
3pointer
added a commit
to 3pointer/br
that referenced
this pull request
Apr 13, 2020
* create with info during incremental restore * add test * fix log * address comment * fix ci * address commemnt
3pointer
added a commit
that referenced
this pull request
Apr 13, 2020
* enable tidb config by default (#230) * enable tidb config by default * backup,restore: fix --checksum flag. (#223) * backup,restore: work on progress to fix a bug that causes --checksum flag won't work properly. Some code of backup and restore ignored the flag (a.k.a. config.Checksum), so when checksum is disabled, we will face failure. * backup: backup will report total bytes and kvs when checksums check disabled. Some code of backup and restore ignored the flag (a.k.a. config.Checksum), so when checksum is disabled, we will face failure. * backup: backup will report total bytes and kvs when checksums check disabled. Some code of backup and restore ignored the flag (a.k.a. config.Checksum), so when checksum is disabled, we will face failure. * backup: add log to ChecksumMatches and new version of FastChecksum. Some of log has been lose. They are in ChecksumMatches now. * restore: restore could find non-checksum tables and skip them automatically. for backup, ChecksumMatches returns error now. * misc: add document for Table::NoChecksum. * backup: omit checksum progress bar when user specify `--checksum=false`. * backup: `CopyMetaFrom` overrides original `client.Schemes` instead of append at its end. * backup: refactor about checksum logic, fix a bug. the bug would cause: when multi tables are backup, the metadata contains only one table. * backup: do some lints. * backup,restore: do some refactor so that cyclomatic complexity won't be too large. * misc: don't use underscore on receiver. * backup: print "quick checksum success" message per table. ...to make br_full_index happy! * backup: refactor a MinInt pattern. * backup: Apply suggestions from code review Co-Authored-By: kennytm <kennytm@gmail.com> Co-authored-by: 3pointer <luancheng@pingcap.com> Co-authored-by: kennytm <kennytm@gmail.com> * fill size in SSTMeta (#233) * Use table info (#231) * create with info during incremental restore * add test * fix log * address comment * fix ci * address commemnt * update 3.1 dependency * remove conf.Experimental.AllowsExpressionIndex Co-authored-by: 山岚 <36239017+YuJuncen@users.noreply.github.com> Co-authored-by: kennytm <kennytm@gmail.com>
3pointer
added a commit
to 3pointer/br
that referenced
this pull request
Apr 26, 2020
* create with info during incremental restore * add test * fix log * address comment * fix ci * address commemnt
kennytm
added a commit
that referenced
this pull request
Apr 26, 2020
* enable tidb config by default (#230) * enable tidb config by default * backup,restore: fix --checksum flag. (#223) * backup,restore: work on progress to fix a bug that causes --checksum flag won't work properly. Some code of backup and restore ignored the flag (a.k.a. config.Checksum), so when checksum is disabled, we will face failure. * backup: backup will report total bytes and kvs when checksums check disabled. Some code of backup and restore ignored the flag (a.k.a. config.Checksum), so when checksum is disabled, we will face failure. * backup: backup will report total bytes and kvs when checksums check disabled. Some code of backup and restore ignored the flag (a.k.a. config.Checksum), so when checksum is disabled, we will face failure. * backup: add log to ChecksumMatches and new version of FastChecksum. Some of log has been lose. They are in ChecksumMatches now. * restore: restore could find non-checksum tables and skip them automatically. for backup, ChecksumMatches returns error now. * misc: add document for Table::NoChecksum. * backup: omit checksum progress bar when user specify `--checksum=false`. * backup: `CopyMetaFrom` overrides original `client.Schemes` instead of append at its end. * backup: refactor about checksum logic, fix a bug. the bug would cause: when multi tables are backup, the metadata contains only one table. * backup: do some lints. * backup,restore: do some refactor so that cyclomatic complexity won't be too large. * misc: don't use underscore on receiver. * backup: print "quick checksum success" message per table. ...to make br_full_index happy! * backup: refactor a MinInt pattern. * backup: Apply suggestions from code review Co-Authored-By: kennytm <kennytm@gmail.com> Co-authored-by: 3pointer <luancheng@pingcap.com> Co-authored-by: kennytm <kennytm@gmail.com> * Use table info (#231) * create with info during incremental restore * add test * fix log * address comment * fix ci * address commemnt * backup: generate backupmeta when backup empty. (#235) * cmd: don't use ':' in the default log file name (#236) * Update build status badge (#239) * pass sse_kms_key_id to S3 (#243) * redirect kvproto Signed-off-by: Yi Wu <yiwu@pingcap.com> * pass sse_kms_key_id Signed-off-by: Yi Wu <yiwu@pingcap.com> * fix hound Signed-off-by: Yi Wu <yiwu@pingcap.com> * update kvproto Signed-off-by: Yi Wu <yiwu@pingcap.com> * go mod tidy Signed-off-by: Yi Wu <yiwu@pingcap.com> Co-authored-by: kennytm <kennytm@gmail.com> * storage: support placing the S3/GCS options into the storage URL (#246) * update 4.0 dependency * go mod tidy * Update README.md Co-Authored-By: Neil Shen <overvenus@gmail.com> Co-authored-by: 山岚 <36239017+YuJuncen@users.noreply.github.com> Co-authored-by: kennytm <kennytm@gmail.com> Co-authored-by: Neil Shen <overvenus@gmail.com> Co-authored-by: yiwu-arbug <yiwu@pingcap.com>
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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?
Fix #230 (comment)
What is changed and how it works?
ddljob.TableInfoandddljob.DBInfoto create tables and schema in incremental restore.config.AlterPrimaryKeyto true so we can execute drop/add pk DDL in incremental restore.Check List
Tests
Code changes
Side effects
Related changes