Commit Graph

45 Commits

Author SHA1 Message Date
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
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
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
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
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
6815dec5b3 ddl: implement reorganize for table partition when adding index (#6814)
* Handle DDL reorganization for table partitions one by one
* Reorganize metadata changed from handle to startHandle, endHandle, partitionID
2018-07-27 17:49:21 +08:00
8b913c95ef *: rename "GetDDLJob" to "GetDDLJobByIdx" (#7129) 2018-07-25 14:28:45 +08:00
da6f0c1edd ddl: initial support for parallel DDL (#6955) 2018-07-25 10:48:38 +08:00
7c18d24933 executor, store: fixed daylight saving time issue (#6823)
Thank you for working on TiDB! Please read TiDB's [CONTRIBUTING](https://github.com/pingcap/tidb/blob/master/CONTRIBUTING.md) document **BEFORE** filing this PR.

## What have you changed? (mandatory)

During coprocessor dag task,  it first uses timezone `name`, if non-empty, to get legitimate timezone variable. To achieve this, we need to push down such data into tikv which leads to change the logic of building pushdown request. The logic I mentioned mainly resides in `executor` package. 

I change `timeZoneOffset` to `zone` and add second return parameter `name string`.  The intentioned of doing this to adopt the convention of `time` package. 

For the same purpose, I change `GetTimeZone` to `Location`. As you can see, in `time` package, timezone was bind to `Location`. 


## What are the type of the changes (mandatory)?
- Bug fix (non-breaking change which fixes an issue)


## How has this PR been tested (mandatory)?
unit-test
integration-test will be added shortly
2018-07-16 18:15:19 +08:00
461663652d *: support 'admin show ddl jobs <number>' grammar (#7028) 2018-07-12 14:49:14 +08:00
a8feebee39 executor: make admin check table error more readable. (#6617) 2018-06-05 14:16:30 +08:00
64e3acadee admin: admin check table do not use the timezone of session, it leads to false alarm. (#6699) 2018-06-04 14:14:04 +08:00
a4715d5d75 *: unflatten datum in checkIndexAndRecord, to fix admin check table false alarm (#6625) 2018-05-24 15:56:02 +08:00
9382be808f ddl: wait for 2*lease when finishing delete-reorg in a rollback operation (#6226) 2018-04-08 23:57:56 +08:00
defccc1acd executor: fix admin check table bug when the column is nil and has a default value (#6142) 2018-03-27 17:35:21 +08:00
4e1a114e68 *: move package context to sessionctx (#5890) 2018-02-22 18:03:38 +08:00
f3b8b04b69 util/admin: clean up and add comparing table and index count func (#5869) 2018-02-12 18:27:18 +08:00
ecbd60c3ff *: add arguement StatementContext to Encode functions. (#5566) 2018-01-06 17:31:08 +08:00
132626e4f6 ddl: fix rawArgs is overwritten (#5531)
* ddl: fix rawArgs is overwritten
2018-01-02 17:03:58 +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
62433663e5 util/types: change types path (#5007)
* util/types: change types path
2017-11-04 10:37:14 -05:00
c49c2d333d inspectkv: rename package inspectkv to admin (#4815) 2017-10-19 21:33:24 -05:00