Commit Graph

29 Commits

Author SHA1 Message Date
3176b9c263 *: move XXInfo/Job, etc, out from model pkg in parser to meta (#55754)
ref pingcap/tidb#54436
2024-09-04 04:49:45 +00:00
b3ed886802 backup: use tombstone instead of offline during CheckStoreLiveness (#54196)
ref pingcap/tidb#52534
2024-06-25 08:01:22 +00:00
99abc284f5 Backup: split batch store backup requests (#54151)
ref pingcap/tidb#52534
2024-06-25 04:58:20 +00:00
eac80126da backup: use history iterator to scan ddl jobs (#54100)
close pingcap/tidb#54139
2024-06-24 12:08:50 +00:00
3e180e298d backup: fix the missing first store state during backup (#53920)
ref pingcap/tidb#52534
2024-06-17 05:41:46 +00:00
dcadcde406 backup: watch store state and retry backup immediately (#53341)
close pingcap/tidb#52534
2024-06-06 03:50:55 +00:00
1c4a9c6434 br: separate the restore client (#53197)
ref pingcap/tidb#52877
2024-05-17 05:07:13 +00:00
835ea0451a backup: implement store based backup to solve the long tail issue (#53081)
ref pingcap/tidb#52534
2024-05-16 11:13:13 +00:00
422ae46b6e lightning/br: move some common code into outer pkg (#52191)
ref pingcap/tidb#52182
2024-03-29 07:03:55 +00:00
52f1510936 br/lightning: PdController uses PD HTTP client (#50331)
ref pingcap/tidb#49865
2024-01-26 12:48:21 +00:00
7e5a5b2912 backup: more stable check liveness when store heartbeat behind too much (#48403)
close pingcap/tidb#48405
2023-12-14 15:34:50 +00:00
6c30c6e6aa br: refactor error handle mechanism to tolerant unexpect kv errors. (#48646)
close pingcap/tidb#47656
2023-12-08 05:20:52 +00:00
3d176fcc2c util/codec,util/errctx,*: add error context, and use it to refactor util/codec (#48613)
close pingcap/tidb#48611
2023-11-20 13:53:40 +00:00
318e82bbb7 *: move most of the packages to 'pkg' (#47123)
ref pingcap/tidb#41241
2023-10-13 14:36:26 +00: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
1eeedacc60 *: remove goleak's ignoring opencensus top function (#37908) 2022-09-19 12:29:00 +08:00
xhe
9a16a8dd19 *: replace defer clean with t.Cleanup (#36722)
close pingcap/tidb#36721
2022-08-01 17:34:05 +08:00
be102a3d55 *: fix timestamp conversion (#36705)
close pingcap/tidb#36707
2022-07-29 19:05:12 +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
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
7d37ac1dde br: get bucket region from s3 to enable users not to input s3 region param (#34419)
close pingcap/tidb#34275
2022-07-07 16:11:03 +08:00
c6fe032e99 br: support PiTR feature (#34409)
ref pingcap/tidb#29501
2022-05-12 17:08:35 +08:00
5bb4be2257 br/pkg/backup: fix goroutine leak in test (#31962)
close pingcap/tidb#31961
2022-01-26 22:58:45 +08:00
701f126b27 br/pkg/backup: migrate test-infra to testify (#31288)
close pingcap/tidb#28164
2022-01-23 13:19:46 +08:00
4b48e55ae9 lightning: Add source dir existence check for s3 (#30674) 2021-12-14 20:04:35 +08:00
124f1fcf3e br: add more precise check for lock file (#30218) 2021-12-02 10:15:53 +08:00
d80efa5c1e br: Compatibility problem between br and TiDB for DDLs about attribute in Incremental Backup (#29360) 2021-11-04 21:41:02 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
1a54708a7f *: merge BR into TiDB (#26655) 2021-08-06 00:17:12 +08:00