Commit Graph

37 Commits

Author SHA1 Message Date
c5393d0367 *: use pdqsort to sort and remove BCE (#35087)
ref pingcap/tidb#34250
2022-06-01 10:48:27 +08:00
2ef7168991 ddl, domain: rewrite testDomain for concurrent DDL (#34221)
ref pingcap/tidb#33008
2022-04-26 20:20:51 +08:00
c8842307ac domain: Log the tables and schema versions when reporting Information schema is changed (#31182)
close pingcap/tidb#31181
2022-01-04 11:18:35 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
7755d25aba *: Integrate SkyWalking-eyes to check license headers in CI and fix licenses headers (#27198) 2021-08-16 18:52:00 +08:00
01a87e3257 *: solve cloud tikv disk full problem (#26302) 2021-08-08 13:21:13 +08:00
35e19eff7f executor: ingore locks of temporary table for point_get/batch_point_get/select_lock (#26267) 2021-07-15 18:05:33 +08:00
cc5e161ac0 *: use tikv/client-go/v2 (#25359) 2021-06-11 17:24:35 +08:00
9148ff9f44 ddl, transaction: DDL on temporary tables won't affect transactions (#24534) 2021-05-17 22:31:39 +08:00
4246568d20 domain, kv: release table which was unlocked (#21180) 2020-11-23 16:27:00 +08:00
975bbaf294 ddl: release memory cache for all tidb-servers when unlock tables (#21006)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2020-11-13 18:06:05 +08:00
3cd5260773 ddl: collect actionTypes for schema change (#18195)
* record action types in schema change history

* change comments

* remove comment

* refactor, remove some params and return values

* change value to pointer, remove useless comments

* refactor comments

* change return value

* refactor

* remove all info

* fix action type append

* update comment

Co-authored-by: Lynn <zimu_xia@126.com>
2020-07-08 11:41:09 +08:00
0d76bdb04a *: fix schema change validation for partitioned table when transaction commit (#14235) 2020-01-01 19:17:09 +08:00
dcc1a09f3b domain: fix data race in SchemaValidator (#13448) 2019-11-19 14:12:23 +08:00
ba9d1ca960 *: adjust delta schema count and add metrics (#11625) 2019-09-27 20:33:18 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
1154456af7 domain,owner: unify and normalize the format of the log (#9646) 2019-03-25 15:50:15 +08:00
419c881207 domain: stop schema validator to prohibit DML executing when tidb lost session of etcd (#8441) 2018-11-28 14:04:57 +08:00
2c26243b4c store/tikv,mysql: improve error message of GC life time (#7658) 2018-09-11 11:35:44 +08:00
e28a81813c *: check the schema-validity when the DDL fails (#6797) 2018-07-09 17:35:04 +08:00
935b66f5c5 ddl: refine syncer log and add some comments (#5871)
* ddl: refine syncer log and add some comments
2018-02-14 17:22:34 +08:00
4d5dd323d9 *: the result of admin show ddl ... shows a job‘s start time (#5517) 2018-01-04 10:50:35 +08:00
f1e89cde19 *: use lower-case of github.com/sirupsen/logrus (#5400)
*: rename github.com/Sirupsen/logrus to github.com/sirupsen/logrus

* vendor: update pd

* vendor: update github.com/pingcap/tipb/go-mysqlx
2017-12-14 16:25:58 +08:00
f7533a68d1 ddl: Add log details and tests (#5021)
* ddl: add log details and tests
2017-11-06 02:16:35 -06:00
0d19c5d7c2 domain: change schema validator data struct to queue (#4578) 2017-09-25 13:28:12 +08:00
1043b0f794 domain: refactor schema validator interface (#4220) 2017-09-18 08:59:43 -05:00
88e1666ac6 *: change the log package to logrus (#4452) 2017-09-08 00:45:07 -05:00
973565e29a domain: Fix the correctness issues after using etcd to sync schema version (#4073) 2017-08-09 17:09:52 +08:00
21c0bfe32e Add nil check on cacheItemInfos[currVer] to (#4058)
prevent nil dereference.
2017-08-07 00:12:32 -05:00
ab53786d33 *: Define the schema change at the table level (#3999) 2017-08-04 17:53:38 +08:00
42637f9e29 domain: fix a bug (#3750) 2017-07-13 22:53:32 +08:00
1837c097a9 *: Add TTL to the self schema version on etcd (#3427)
* *: add ddl ttl
2017-06-11 14:57:10 +08:00
b3c43e52ca *: retry commit for prepared statement when schema change (#3297) 2017-05-21 10:42:10 +08:00
302aa70f76 domain: check schema change when lease=0 (#3273) 2017-05-17 20:08:31 +08:00
a3b5a487d4 domain: fix a data race (#2397) 2017-01-05 14:49:06 +08:00
f35ab30127 *: change the implementation of domain schema lease (#2327)
lease is based on pd timestamp oracle instead of TiDB local time
return retryable error when schema check find schema changed
move schema lease check to 2PC, use commitTS
2017-01-03 19:45:08 +08:00
c29ebe0715 domain: schema lease manage abstraction (#2137) 2016-12-27 20:23:42 +08:00