Commit Graph

27 Commits

Author SHA1 Message Date
8b76580bf5 backup: config adjust for checkpoint (#39634)
close pingcap/tidb#39632
2022-12-06 17:32:03 +08:00
1de2bf6e54 Backup: add checkpoint (#38648)
close pingcap/tidb#38647
2022-11-30 12:52:00 +08:00
84703efd01 br: modify collate.newCollationEnabled according to the config of the cluster (#39173)
close pingcap/tidb#39150
2022-11-22 19:19:58 +08:00
6477e7521f br: remove error when create the backup client to make caller easier (#39303)
close pingcap/tidb#39302
2022-11-22 12:27:57 +08:00
c4316fbc74 log-backup: support restart task after stop a log-backup task (#38381)
close pingcap/tidb#38382
2022-10-27 13:19:57 +08:00
0e3e44001b ebs-br: change command line flags of restore (#38027)
close pingcap/tidb#38011
2022-09-21 23:21:03 +08:00
181fb8e905 br: merge feature branch of ebs-based-br (#37297)
ref pingcap/tidb#35306
2022-09-18 20:37:00 +08:00
a25917f156 cloud: support backup to s3 when object lock enabled. (#37392)
close tikv/tikv#13442
2022-09-15 12:14:59 +08:00
14f9b043cb br: add an example in timezone-check error message (#36895)
ref pingcap/tidb#36717
2022-08-18 14:42:52 +08:00
6ae88c4309 br: use one shot session to close domain ASAP (#36558)
* br: use one shot session to close domain ASAP



Co-authored-by: Ian <ArGregoryIan@gmail.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
2022-07-26 20:15:53 +08:00
656b5a5e80 br: fix broken integration test (#36411) 2022-07-21 16:49:09 +08:00
ab513bf0ca ddl: support concurrent ddl (#32169)
* 1. init ddl tables

create tidb_ddl_job, tidb_ddl_reorg, tidb_ddl_history tables with raw meta write, these 3 tables is use to replace the ddl job queue and reorg and history hash table

* 2. setup concurrent ddl env and add ddl worker pool

adds the ddl worker pool definition, the ddl job manager will find a job and ship it to a worker in the worker pool.
Also, this commit provides a sessionctx wrapper, only use in ddl relate. it just wraps begin, commit and execute

* 3. add ddl manager to handle ddl job

* 4. reorg handler for concurrent ddl

just implements the partner of the reorg information.

* 5. manage ddl jobs for concurrent ddl

add the partner of add job, delete job and many others related to history job
because many of the functions need a session now, we just change the caller

* 6. add metrics for concurrent ddl

add metrics

* 7. support multiple tables

* 8. fix test

* 9. migrate ddl between table and queue

support switch between the old and new ddl framework, migrate the existing ddl job between queue and table

* 10. check tikv version and set reorg worker count according cpu count

* *: add featuretag on tests

Signed-off-by: Weizhen Wang <wangweizhen@pingcap.com>

* use a determined table id for 3 tables

* remove ctx value

* add GetSchemaVersionWithNonEmptyDiff function

* address tangenta and zimulala comment

* use only one etcd path

* make ActionRenameTable support multi-schema

* reset sql digest to make top sql work correct

* add comment

* fix test

* remove 0 for schema version lock

Co-authored-by: xiongjiwei <xiongjiwei1996@outlook.com>
Co-authored-by: Ti Chi Robot <ti-community-prow-bot@tidb.io>
Co-authored-by: wjHuang <huangwenjun1997@gmail.com>
2022-07-20 21:20:07 +08:00
63f5d286ff log-backup: add version check for pitr (#36268)
close pingcap/tidb#36267
2022-07-18 23:27:07 +08:00
5eac3b6999 log-backup: check timezone when using datatime format ts string (#35811)
ref pingcap/tidb#31975
2022-06-29 17:20:40 +08:00
c6fe032e99 br: support PiTR feature (#34409)
ref pingcap/tidb#29501
2022-05-12 17:08:35 +08:00
f88dab92f9 util: use generics to implement max/min (#34197)
close pingcap/tidb#34247
2022-05-06 10:08:57 +08:00
2578630108 br: enhance the error infomation (#33882)
close pingcap/tidb#33598
2022-04-21 21:54:04 +08:00
8f8dfafc10 br: Fix new collaction enable check (#33500)
* add glue to get global variables
2022-03-28 21:16:53 +08:00
dcafe8ec71 br: download sst again with no-crypt parameters when met decryption error for downloadSST (#32847)
close pingcap/tidb#32423
2022-03-17 14:00:30 +08:00
e0db77ecd1 br: implement backup & restore policy info (#33007)
close pingcap/tidb#32290
2022-03-15 17:39:53 +08:00
4b48e55ae9 lightning: Add source dir existence check for s3 (#30674) 2021-12-14 20:04:35 +08:00
36e694bfc5 br: Add encrypt/decrypt feature for br (#28200) 2021-10-25 10:44:48 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
07c3bf71ba br, tidb: Add backup and restore size for TiDB SQL brie task (#27508) 2021-08-25 22:34:05 +08:00
5516d7d79c br:backup: If make a backup of empty db, should get a success summary (#27467) 2021-08-24 18:52:04 +08:00
940ea4406f br: fix-bug: Flush backupMeta to disk for multiple times (#27104) 2021-08-16 15:51:59 +08:00
1a54708a7f *: merge BR into TiDB (#26655) 2021-08-06 00:17:12 +08:00