Commit Graph

80 Commits

Author SHA1 Message Date
073ab9b6a3 *: refactor RestrictedSQLExecutor (#11904) 2019-08-28 19:17:19 +08:00
1c1faab678 *: convert key to hex for logs (#11781) 2019-08-20 11:10:16 +08:00
523b93651d Add follower read support to TiDB (#11347) 2019-08-16 13:26:17 +08:00
d210889a6c *: trace the execution of the insert operation (#11667) 2019-08-09 14:22:03 +08:00
59e3eb75cd *: speed up the operation of "admin check table" (#8572) 2019-07-31 17:11:30 +08:00
05f66f4384 ddl: fix invalid index on multi-layer virtual columns (#11260) 2019-07-24 11:15:22 +08:00
e1f2b3728d *: make assertion check more reasonable (#10424)
Make sure there are no "ASSERTION fail" logs in session and executor unit test
2019-07-04 16:20:38 +08:00
0d563f1e2d stats: fix unstable test (#10953) 2019-06-27 13:51:16 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
8599fee538 *: implement IterReverse for tikvSnapshot and use desc scan to get latest N ddl history jobs. (#10152) 2019-05-31 23:40:09 +08:00
5c21fa4b43 ddl: implement ALTER DATABASE to alter charset/collation (#10393) 2019-05-15 17:32:21 +08:00
f5fb5aa32d util/admin: add unit test and move integration test. (#10013) 2019-04-04 16:19:07 +08:00
32fdf46b1f util: use uniform log format for util package (#9668) 2019-03-22 10:33:03 +08:00
38cfb0d435 ddl: add rolling back for rename table, modify table charset, truncate table partition (#9602) 2019-03-13 16:05:56 +08:00
3910a720df *: add assertion in kvproto to check data consistency (#9180) 2019-03-08 16:49:31 +08:00
4449eb062a ddl: add ddl job error count limit, exceed the limit should cancel the ddl job (#9295) 2019-02-27 15:03:04 +08:00
c8c92e2dd7 ddl: refine cancel modify column, add/drop foreign key rollback (#9419) 2019-02-27 14:07:34 +08:00
8369ed2ffc ddl, util: Handle default values for generating column expressions when adding an index (#9371) 2019-02-27 12:59:18 +08:00
79a88a0b3c ddl: fix cancel truncate table ddl error (#8977) 2019-02-22 16:58:04 +08:00
45ee205896 ddl :fix cancel add/drop partitioned table ddl job (#8938) 2019-02-19 17:22:41 +08:00
33a961decf ddl: fix canceling model.ActionRebaseAutoID and model.ActionShardRowID ddl jobs (#9226) 2019-02-18 11:34:13 +08:00
818ec911c5 admin: fix admin check table err when add column not null, then add index on the column (#9108) 2019-01-20 22:44:10 +08:00
ec833bc4d2 *: fix some lints produced by golangci-lint (#8999) 2019-01-16 16:44:49 +08:00
e06c87d3c1 add an option for AddRecord and Create (#8884) 2019-01-02 11:30:53 +08:00
eaeaca74ae ddl: fix cancel drop column ddl error (#8545) 2018-12-28 11:28:26 +08:00
ffa375fdc2 ddl: fix cancel drop table/database ddl job bug. (#8537)
* ddl: fix cancel drop table bugs
2018-12-26 10:34:07 +08:00
bd69b15e79 *: add the error check (#8770) 2018-12-24 22:22:00 +08:00
a7907ede7a *: remove fail field from TxnState (#8712)
Originally, `fail` is added to simplify error handling, avoiding large changes on
the Txn() interface API. But it turns out that `fail` becomes the root of many bugs.
So this commit remove the `fail` and make an API refactory.
2018-12-20 16:36:12 +08:00
7056bb0d32 executor, session: refine insert unsigned bigint autoIncreID (#8181) 2018-12-18 23:01:10 +08:00
d3b92e0288 ddl: fix panic when add index of generated column. (#8620) 2018-12-11 18:08:18 +08:00
6e2d6c7aa7 ddl: fix cancel drop index error (#8504) 2018-12-07 23:29:23 +08:00
93acd10f53 *: add context.Context to NewTxn(), tiny refactor (#8530) 2018-12-06 17:45:16 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +08:00
d301c16e0e ddl: fix a bug that cancel add index ddl job when workers are not run, which cause tidb ddl hang up (#8171) 2018-11-28 17:10:55 +08:00
f085f4fee4 admin: admin check table/index using tidb_snapshot (#8172)
* admin: admin check table/index support snapshot
2018-11-22 12:21:53 +08:00
3742a0d602 *: Txn() function signature refactor and remove ActivePendingTxn() (#8327)
* change Txn() function signature to Txn(active bool)
* ActivePendingTxn() is not used any more because Txn() does the work
* change executor builder getStartTS() uint64 to getStartTS() (uint64, error)
2018-11-16 11:10:39 +08:00
09c6bff91c *: Make use of the upperBound of ticlient's kv_scan interface to ensure no overbound scan will happen (#8081) 2018-11-09 18:49:00 +08:00
d125958380 tikvclient: Add endKey param to Scanner (#8178) 2018-11-08 18:21:40 +08:00
32b1dbd8d5 *: rename "github.com/pkg/errors" to "github.com/pingcap/errors" (#8136)
We import "github.com/pkg/errors" in the code, and actually put
the "github.com/pingcap/errors" there in the vendor path.
That's a dirty hack, and prevent the introduce of Go module.
2018-11-01 16:09:07 +08:00
89dda9d9a8 *: move parser to a separate repository (#8036) 2018-10-25 11:12:10 +08:00
1434fa9b89 admin: refine admin check decoder (#7862) 2018-10-23 17:55:58 +08:00
1bb15f14fa admin: fix admin check table bug of byte compare (#7887)
* admin: remove reflect deepEqual
2018-10-16 18:24:58 +08:00
bb8ba440e8 admin: fix admin check table compare bug (#7818) 2018-09-30 11:42:06 +08:00
cb03f2bec1 move from juju/errors to pkg/errors (#7151) 2018-09-12 15:42:20 +08:00
bc97e2d616 plan, util/admin: fix admin check table error when a column of index is virtual generated (#6817) 2018-08-28 12:42:55 +08:00
d1f2587903 *: admin check table return tidb specific error code. (#7363) 2018-08-14 13:54:16 +08:00
702a116a5e admin: fix admin check table false alarm in the case that index contains pkIsHandle column (#7317) 2018-08-09 17:37:47 +08:00
3a3845fb24 *: support admin show ddl (#7274) 2018-08-07 18:23:41 +08:00
5a0fd2db46 ddl: GetDDLJobs should return a sort job. (#7254) 2018-08-06 21:32:29 +08:00
88bf9f7ba0 admin: support prefix index in admin check table. (#7241) 2018-08-06 11:57:46 +08:00