Commit Graph

361 Commits

Author SHA1 Message Date
21bf3b6202 ddl: add a switch for multi schema change & make it compatible with old test cases (#21533) 2020-12-10 16:26:00 +08:00
9c3e106374 session: add default_week_format to builtinGlobalVariable (#21511) 2020-12-10 08:34:53 +08:00
b269ef89d9 sessionctx: add variable tidb_analyze_version (#21515) 2020-12-08 16:04:48 +08:00
d19a21d92a ddl, server, session: make gocritic happy (#21544) 2020-12-08 12:09:48 +08:00
0f9d77b07f ddl: Support adding a middle state in altering placement policies (#21356) 2020-12-07 15:12:58 +08:00
fc37586491 *: refactor function ExecRestrictedSQLWithContext to fix a DATA RACE (#21461) 2020-12-04 14:28:38 +08:00
43cccbb72f *: dispatch the local and global transactions (#21353)
Signed-off-by: JmPotato <ghzpotato@gmail.com>
2020-12-04 10:34:48 +08:00
081e3a99c5 session: fix ineffective EXPLAIN FOR CONNECTION statement (#21044) 2020-12-03 16:57:56 +08:00
33b7f634f6 session: fix a DATA RACE to make the CI more stable (#21421) 2020-12-02 12:41:18 +08:00
0e2f18d8f9 store, config, session: Use system variables to enable async commit and 1PC (#21365)
* add a system variable for enabling async commit

Signed-off-by: ekexium <ekexium@gmail.com>

* remove async commit enable config item

Signed-off-by: ekexium <ekexium@gmail.com>

* add a system variable for enabling 1PC

Signed-off-by: ekexium <ekexium@gmail.com>

* try to fix test

Signed-off-by: ekexium <ekexium@gmail.com>

* remove 1pc item in config

Signed-off-by: ekexium <ekexium@gmail.com>

* try to fix test

Signed-off-by: ekexium <ekexium@gmail.com>

* correct the condition to enable 1pc

Signed-off-by: ekexium <ekexium@gmail.com>

* do not enable 1pc/async commit on bootstrap if store is not tikv

Signed-off-by: ekexium <ekexium@gmail.com>

* refactor checkAsyncCommit

Signed-off-by: ekexium <ekexium@gmail.com>

* fix test: enable async commit or 1PC by setting txn options

Signed-off-by: ekexium <ekexium@gmail.com>

* add a system variable for external consistency

Signed-off-by: ekexium <ekexium@gmail.com>

* remove external consistency config item

Signed-off-by: ekexium <ekexium@gmail.com>

* refactor: checkXXX does not need parameters

Signed-off-by: ekexium <ekexium@gmail.com>

* refactor: add a helper function to pessimistic_test

Signed-off-by: ekexium <ekexium@gmail.com>

* change allowed scope to global or session

Signed-off-by: ekexium <ekexium@gmail.com>

* fix external consistency test

Signed-off-by: ekexium <ekexium@gmail.com>

Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-12-02 11:49:57 +08:00
546b8b5ab7 *: close transaction for all auto-committed SQLs (#21378)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2020-11-30 21:33:28 +08:00
59b8e7597b session: fix the bug that may cause upgrading from v4.0 fail (#21350) 2020-11-30 19:08:57 +08:00
cc0e1d46e6 planner/core, session, sessionctx/variable: add session variable to control the concurrency of shuffle merge join (#21332) 2020-11-27 14:09:04 +08:00
c201eb7335 config, session: keep the default value of mem-quota-query when upgrade from 3.0 to 4.0.9+ (#21305) 2020-11-26 17:12:51 +08:00
ab9ddcce4a executor: fix issue of explain for connection can't show the last query plan (#21242) 2020-11-26 14:19:17 +08:00
1689eeab6f executor: fix cannot use explain for with the statement queried by explain analyze (#21052) 2020-11-25 21:24:07 +08:00
e01f5e41c2 store, session: Introduce system variable to control ratelimit action (#21259) 2020-11-25 20:27:38 +08:00
72794461eb *: support read only lock (#21100)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2020-11-25 10:06:54 +08:00
92c012c449 log: desensitize of dispatching error and parsing error (#21141) 2020-11-20 15:39:54 +08:00
2b363fb80d *: support to modify config server-memory-quota-ratio dynamically (#20927) 2020-11-19 13:40:31 +08:00
863117ba05 session: Check the partition placement constraint of local transactions (#21039)
Signed-off-by: Song Gao <disxiaofei@163.com>
2020-11-17 14:28:27 +08:00
e136429d8d *: refactor parser initialize method and add tidb_enable_strict_double_type_check variable (#20967) 2020-11-16 19:58:27 +08:00
83ceede82d session, variables: Stream agg concurrency variable (#20960) 2020-11-16 10:30:24 +08:00
160cb9b814 *: fix set tidb_general_log not work (#20993)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2020-11-12 13:54:23 +08:00
1e17c6925a util: redact log for expensive sqls (#20852) 2020-11-09 10:50:07 +08:00
ae5dc3f69a executor: fix issue of load data statement doesn't record into slow query and statements_summary (#20713)
Signed-off-by: crazycs520 <crazycs520@gmail.com>
2020-11-04 16:27:01 +08:00
6444a05509 executor: avoid goroutine leak in index Lookup join (#19251) 2020-11-03 13:24:40 +08:00
152b60ebe4 session: increase cm_sketch column max length to 6291456(6MB) (#20152) 2020-11-02 15:21:25 +08:00
6c278101a4 planner: support variable to prefer index scan (#18996) 2020-10-26 23:12:42 +08:00
0d613a2dfa [executor, store/tikv]: implement a prototype for MPP framework. (#19954) 2020-10-26 14:46:47 +08:00
99d1163cbc *: use ID instead of NAME in mysql.schema_index_usage (#20589) 2020-10-23 14:42:29 +08:00
2f067c0542 *: redact arguments for Error (#20436) 2020-10-21 14:44:08 +08:00
bdb6c49600 *: collect index usage information from point get and dump them to KV (#20126) 2020-10-16 16:17:34 +08:00
dcefa58035 *: use global stats & make ddl/feedback/show/export works(part III) (#20271) 2020-10-14 16:11:33 +08:00
98f5ca4a8d txn: support Oracle-like serializable isolation (#20265)
Signed-off-by: Tina Fritz <tina77fritz@gmail.com>
2020-10-14 13:46:24 +08:00
c704b9756e executor: add runtime information for DML statement in explain analyze (#19106) 2020-10-10 13:34:53 +08:00
170e2fec92 *: collect multiple partitions and store in tidb (part II) (#19899) 2020-09-29 21:25:56 +08:00
fa81ec51b4 *: refactor sysvars to allow component registration (#20289) 2020-09-29 14:04:24 +08:00
17b7b5e815 *: add executor runtime info for explain for connection statement (#19183) 2020-09-27 20:44:11 +08:00
486e473a86 session: fix panic when storing outdated plans from plan cache (#19296) 2020-09-27 14:56:02 +08:00
31bd7d8b3d planner: rename optimizer hint TOPN_TO_COP() to LIMIT_TO_COP() (#20022) 2020-09-17 14:23:23 +08:00
31a91d825c config: remove pessimistic-txn.enable in config (#20008)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2020-09-16 10:53:08 +08:00
70a567e4cb session: refine error message desensitization (#19409) 2020-09-15 16:00:01 +08:00
fa6baa9f53 session: cleanup some duplicated code (#19980) 2020-09-15 14:12:40 +08:00
2a3a5ab076 *: disable new partition prune in master distribution (#19911) 2020-09-14 16:26:54 +08:00
64c2cc5cbc sessionctx,store,kv: add a session variable to export last txn info (#19949)
Signed-off-by: zyguan <zhongyangguan@gmail.com>
2020-09-14 13:04:05 +08:00
4f9b3508dd infoschema: add digest for process list (#19622)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-09-07 13:23:39 +08:00
6cba2702c0 session: fix mysql_list_fields leaking table info (#19554)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-29 11:30:21 +08:00
e356136b72 *: annotate execution info in runtime/trace (#19407)
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2020-08-27 11:23:36 +08:00
945f7cc4a0 ddl, tables: support the column type change between the integer types (#19059) 2020-08-26 21:30:14 +08:00