Commit Graph

65 Commits

Author SHA1 Message Date
2e1cff73f3 *: add ExecRestrictedSQL() func for RestrictedSQLExecutor interface (#31618)
ref pingcap/tidb#30918
2022-01-24 21:30:11 +08:00
5cd37f0008 session: fix data race in ParseWithParamsInternal (#31058)
close pingcap/tidb#30918
2022-01-06 21:02:37 +08:00
b43c9ffa85 *: migrate sync.WaitGroup to util.WaitGroupWrapper (#31257)
ref pingcap/tidb#29517
2022-01-04 15:04:35 +08:00
3de13842b3 test: control log level with environment variables (#30871) 2021-12-24 17:03:48 +08:00
4dc385ce8b test: merge serial tests in ddl, infoschema, session, store, table, telemetry and types (#30874) 2021-12-23 20:01:47 +08:00
23c71f1a3b execute: don't transform charset in internal sql (#30843)
close pingcap/tidb#30789
2021-12-20 17:15:46 +08:00
55a38a1c76 *: tiny clean up the RecordSet NewChunk() method (#29232) 2021-11-02 20:02:51 +08:00
xhe
94e30df8e2 parser: fix compiling, add unit tests (#28700) 2021-10-11 23:15:25 +08:00
3dbbe7cef8 ddl/util: migrate test-infra with testify matchers (#28422) 2021-09-29 11:48:47 +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
2b192e3149 topsql: refine collect information for DDL and internal SQL (#26047) 2021-07-15 16:13:36 +08:00
3ed698259d infoschema: maintain the snapshotTS in the infocache (#25322) 2021-06-11 22:42:35 +08:00
xhe
2ca98e393c *: compatibility with staleread (#24285) 2021-05-17 19:53:39 +08:00
c8bc701170 *: misc cleanups to variable package (#24507) 2021-05-11 13:23:38 +08:00
cb94139137 ddl: fix err check (#22988) 2021-03-03 11:26:54 +08:00
75f7485688 ddl: migrate part of ddl package code from Execute/ExecRestricted to safe API (1) (#22670)
Signed-off-by: AilinKid <314806019@qq.com>
2021-02-05 13:23:17 +08:00
91a9d3065a ddl: make reorg session aware of the new row format (#21412) 2020-12-04 15:29:49 +08:00
8ae5b1cfd1 ddl: fix panic tidb-server doesn't release table lock (#19586) 2020-09-15 19:31:41 +08:00
37984d7cb0 tests: improve tests for Windows platform (#19088)
* tests: improve tests for Windows platform

* fix race build

* update badger to fix kill issue on Windows

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-13 17:17:19 +08:00
931ff98df5 simple fixes for the staticcheck linter (#18923)
Note that this found 2 bugs where errors were being silently ignored.

These are really simple fixes that didn't require much thought.
There are still more staticcheck warnings that should be fixed.

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-06 13:38:17 +08:00
026d5ba192 ddl: stabilize test TestSyncerSimple (#18229)
Signed-off-by: wjhuang2016 <huangwenjun1997@gmail.com>
2020-07-20 14:39:47 +08:00
6fae78d6cf ddl: use a valid ctx instead of context.Background (#18166) 2020-07-07 15:17:55 +08:00
ac30f5322e mockstore: introducing embedded unistore (#17156) 2020-05-18 17:28:44 +08:00
51015c1c21 *: fix the way to use recover in ddl, and unify using recover in domain and ddl (#16798) 2020-05-18 13:23:47 +08:00
dcafb527ff *: Handle the error of "CampaignOwner" (#16470) 2020-05-09 14:28:05 +08:00
4fd48b0e32 test: enlarge timeout for test (#16464) 2020-04-16 15:20:49 +08:00
c2538facc9 ddl: Support the operation of adding multi-columns (#15540) 2020-04-08 13:22:25 +08:00
3a255c5518 *: fix unit tests on the windows platform (#14826) 2020-02-18 15:23:17 +08:00
2ee3b33b59 domain: change some log's level to ERROR (#14779) 2020-02-13 19:24:12 +08:00
79eaa967bb ddl, stats: handle add/trunctate partition events (#14500) 2020-01-22 17:44:22 +08:00
4dfbb14c51 *: tidy code && prealloc some slice for performance (#13468) 2020-01-02 17:26:10 +08:00
9bd7a6de90 *: support flashback dropped/truncated table (#13109) 2019-12-03 19:49:48 +08:00
4b830aa7f6 *: Remove unused code (#13674) 2019-11-22 11:37:07 +08:00
ebe8b0989d *: limit a single test function timeout to 4s (#13573) 2019-11-21 13:44:08 +08:00
7f63a80e58 *: stabilize some tests for CI (#13381) 2019-11-13 11:31:50 +08:00
27426daed4 *: make the version of etcd consistent with pd (#13176)
Signed-off-by: Neil Shen <overvenus@gmail.com>
2019-11-06 12:08:03 +08:00
5352e7c65c ddl: use the Options to reorganize the NewDDL paramaters (#11966) 2019-09-02 10:09:44 +08:00
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
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
c8d1ff7ca6 *: replace 'logutil.Logger(context.Background())' with 'logutil.BgLogger()' (#10866) 2019-06-21 19:13:31 +08:00
d23b894c69 ddl: Remove expired keys on PD (#10406) 2019-06-20 13:47:52 +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
365264cd21 ddl: add restore deleted table (#7937) 2019-01-16 15:37:33 +08:00
00c4ff4fa9 *: refactor Executor.Next() to receive RecordBatch (#8994) 2019-01-14 15:04:36 +08:00
858b200e9a variable: remove tidb_ddl_reorg_worker_cnt and tidb_ddl_reorg_batch_size session level. (#8941) 2019-01-10 15:12:22 +08:00
c137cada68 *: change golang.org/x/net/context to standard context (#8579) 2018-12-05 13:54:00 +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
a7f4687791 store/gc_worker: Use UnsafeDestroyRange instead of DeleteRange in GC (#7560) 2018-09-14 21:33:57 +08:00