Commit Graph

113 Commits

Author SHA1 Message Date
a888c6d06a *: add the tid to the schema-change related tables only when keys need to be locked (#15698) 2020-03-26 11:17:38 +08:00
7ceb49f5bc *: do not add extra locks for optimistic transactions (#15558) 2020-03-23 09:19:30 +08:00
28869fa024 serssion, server: fix the correctness of the query field in the DDL job (#15435) 2020-03-18 11:06:13 +08:00
af861eeba2 planner: support hint USE_CASCADES(true|false) to use/disuse cascades planner in a single query (#15352) 2020-03-16 19:35:24 +08:00
6f95edbaee session: reorganize session unit test suite (#15279) 2020-03-16 12:20:23 +08:00
696e00b80b session: fix the txn.Size() function for TxnState (#15282)
TxnState implements the kv.Transaction, its Size() method should
consider the cached transaction data.
2020-03-12 19:54:10 +08:00
92438644d9 session: add test case for retrying union statement (#15051) 2020-03-04 11:17:13 +08:00
b3469e7964 *: fix a bug that the pessimistic lock doesn't work on a partition (#14921)
physicalID should be used if 'select for update' works on a
partitioned table.
2020-03-03 15:06:45 +08:00
7beea97940 mocktikv: add write op_lock for mocktikv (#14991) 2020-03-02 15:53:41 +08:00
5a00c80e4b test: fix data race in TestDisableTxnAutoRetry (#14825) 2020-02-19 21:22:33 +08:00
62e48ca046 test: optimize session tikv test (#14709) 2020-02-12 18:07:18 +08:00
e4eb58c86d executor: grant table level privilege should check table exist (#14540) 2020-01-30 11:57:23 +08:00
562a448b7d session,executor: fix transaction lazy initialization in pessimistic mode (#14446) 2020-01-14 16:48:05 +08:00
e5d5a61e13 session: use failpoint to reduce the performance impacts of test code (#14276) 2019-12-29 14:22:42 +08:00
1335ffb6b7 *: support read consistency isolation level in the pessimistic transactions (#14087) 2019-12-24 21:24:39 +08:00
9e63120472 session,domain,owner: test the session package with tikv (#14149) 2019-12-24 10:40:09 +08:00
a61e3cc324 session: move the failpoint test to testSessionSerialSuite (#14089) 2019-12-17 12:30:16 +08:00
881038ee1b session: support 'GLOBAL SCOPE' for tidb_enable_table_partition (#14062) 2019-12-17 10:10:25 +08:00
3ee6bc8a21 ddl: fix the bug that VIEWs can be dropped by DROP TABLE syntax (#14048) 2019-12-13 17:07:43 +08:00
94481e883d session: if txn invalid do not active it and return an error (#13935) 2019-12-09 13:41:09 +08:00
448af254ec fix race of TestSkipWithGrant (#13923) 2019-12-05 16:10:07 +08:00
b45e8b1f9b session: move test and make it stable (#13885) 2019-12-04 15:50:09 +08:00
5b6422df58 *: support read remote TiDB memory table of cluster (#13065) 2019-12-04 13:05:36 +08:00
5fb669b68b session: fix CI data race in TestSchemaCheckerSQL (#13859) 2019-12-03 13:09:25 +08:00
4b5ae3a34c session: refactor code to remove useless filed and return (#13841) 2019-12-01 23:01:53 -06:00
755fd1924b ddl: fix index length calculation (#13727) 2019-11-27 19:51:17 +08:00
2082b68a41 test: optimize session&planner/core unit test (#13580) 2019-11-27 17:25:55 +08:00
596fb64233 planner: support a hint to force using a IndexMerge path (#12843) 2019-11-27 15:44:25 +08:00
359a667d42 store: implement non-block read when coprocessor meets the lock of a large transaction (#11986) 2019-11-19 13:20:00 +08:00
2aa571b1ab test: make several slow package unit test support run parallel (#13431) 2019-11-14 12:47:42 +08:00
3712664d43 session,store/tikv: make CI more stable (#13303)
make TestBatchResolveLocks more stable
make TestErrorRollback faster
2019-11-09 17:09:19 +08:00
60d4291c5d store: upgrade the CheckTxnStatus API (#13123)
CheckTxnStatus introduces a non-block read mode. In this mode, TiDB can ignore
the secondary lock TTL check and send the CheckTxnStatus request.
2019-11-07 19:09:13 +08:00
e43444265b *: Support required rows rows for arrow decode format. (#12613) 2019-11-05 18:12:09 +08:00
000c1ba5db planner, session: add isolation read with engine type (#12997) 2019-11-01 15:47:12 +08:00
99a5432dce *: encode the returned data using the Chunk format in mocktikv (#12023) 2019-09-28 20:02:26 +08:00
e173c7f5c1 executor: add several sql hint related to session variables (#11809) 2019-09-17 13:39:16 +08:00
04292a00de session: annotate the previous statement to the error when transaction commit failed (#12087) 2019-09-16 15:15:07 +08:00
c2901fea45 meta/autoid : fix the issue that MaxUint64 and MaxInt64 autoID is incorrectly allocated (#12119) 2019-09-11 08:07:39 -05:00
2307338ae7 planner: generate index path as candidate when it is a single scan (#12022) 2019-09-09 19:13:41 +08:00
073ab9b6a3 *: refactor RestrictedSQLExecutor (#11904) 2019-08-28 19:17:19 +08:00
523b93651d Add follower read support to TiDB (#11347) 2019-08-16 13:26:17 +08:00
028f63cb4a *: rename tidb_back_off_weight (#11655) 2019-08-07 15:04:56 +08:00
7f3bff8afe session: do not keep history when the transaction retry is disabled (#11192) 2019-07-12 12:42:33 +08:00
cb23b524ac *: directly save prepare execute args as datums in binary proto (#10884) 2019-07-02 13:49:06 +08:00
c32db315ea session,parser: make MAX_EXECUTION_TIME sql hint and global variable work (#10963) 2019-06-28 15:17:57 +08:00
0d563f1e2d stats: fix unstable test (#10953) 2019-06-27 13:51:16 +08:00
d244723a5e executor: remove unused structure RecordBatch (#10891) 2019-06-26 15:26:16 +08:00
a57b6e60a6 *: Add support for MAX_EXECUTION_TIME. (#10541) 2019-06-25 01:18:11 +08:00
04cd877967 session, sessionctx: add unit test for sessionctx, session (#10763) 2019-06-18 15:09:13 +08:00
e9ab859d1d privileges: add SkipWithGrant check for RBAC methods (#10681) 2019-06-05 10:44:27 +08:00