052d716955
test: stablize test case ( #21643 )
2020-12-10 21:16:21 +08:00
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
bc41e47360
store/tikv: support fallback from async commit (take 2) ( #21531 )
...
Signed-off-by: Yilin Chen <sticnarf@gmail.com >
2020-12-10 12:16:21 +08:00
9c3e106374
session: add default_week_format to builtinGlobalVariable ( #21511 )
2020-12-10 08:34:53 +08:00
2595487ff1
session: disable a fallback related assertion temporarily ( #21563 )
...
Signed-off-by: Yilin Chen <sticnarf@gmail.com >
2020-12-08 19:16:47 +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
22e5ebd310
*: use the Local TSO to update ForUpdateTS ( #21490 )
...
Signed-off-by: JmPotato <ghzpotato@gmail.com >
2020-12-04 13:41:47 +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
1a2098216e
session/bootstrap: Do not enable async commit and 1pc by default for new cluster ( #21438 )
...
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com >
2020-12-03 13:50:48 +08:00
33b7f634f6
session: fix a DATA RACE to make the CI more stable ( #21421 )
2020-12-02 12:41:18 +08:00
051285a572
txn: fix the inconsistency caused by amend, support unique index amend ( #21267 )
2020-12-02 12:04:47 +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
55c106afb8
store/tikv: fix async commit amend txn failure with update statement ( #21281 )
...
Signed-off-by: Yilin Chen <sticnarf@gmail.com >
2020-11-26 17:54:01 +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
205f77bff9
session: fix unit test TestUnionScanForMemBufferReader ( #21258 )
2020-11-25 17:55:34 +08:00
72794461eb
*: support read only lock ( #21100 )
...
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com >
2020-11-25 10:06:54 +08:00
d12eb1b174
executor: Fix IndexMergeReader works incorrectly under RC isolation level ( #21208 )
...
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com >
2020-11-24 17:39:54 +08:00
afb2ab95f0
table: fix zero date in different sqlmode ( #20206 )
2020-11-24 12:46:51 +08:00
92c012c449
log: desensitize of dispatching error and parsing error ( #21141 )
2020-11-20 15:39:54 +08:00
91cd12f83f
store: update the PD client to support the Global/Local TSO ( #20980 )
2020-11-19 15:30:43 +08:00
2b363fb80d
*: support to modify config server-memory-quota-ratio dynamically ( #20927 )
2020-11-19 13:40:31 +08:00
629ef07597
plan: fix the IsSelectForUpdateLockType check ( #21125 )
2020-11-19 12:24:23 +08:00
f72cec77b6
*: support SQL bind for Update / Delete / Insert / Replace ( #20686 )
2020-11-17 15:19:04 +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
a81c89f89b
ddl: support column type change from date time type to other types ( #20778 )
2020-11-12 19:06:42 +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
269494e3de
*: Move sysvar validation to struct (3 of 3) ( #20521 )
2020-11-12 13:22:42 +08:00
8eaccd41a9
variable: add txn_scope sys var ( #20721 )
2020-11-12 11:09:54 +08:00
1e17c6925a
util: redact log for expensive sqls ( #20852 )
2020-11-09 10:50:07 +08:00
28cdf55009
transaction: lock row key in delete operation ( #20755 )
2020-11-06 11:16:25 +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
a53c1d05b1
expression: Support some cast functions push down to TiFlash ( #20787 )
2020-11-04 15:21:01 +08:00
6444a05509
executor: avoid goroutine leak in index Lookup join ( #19251 )
2020-11-03 13:24:40 +08:00
382bd9e0fd
txn: Support 1PC for transactions that only have one prewrite request ( #20313 )
...
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com >
2020-11-03 13:11:40 +08:00
152b60ebe4
session: increase cm_sketch column max length to 6291456(6MB) ( #20152 )
2020-11-02 15:21:25 +08:00
de4612597c
transaction: lock unique key for delete operation ( #19220 )
...
Signed-off-by: you06 <you1474600@gmail.com >
2020-10-29 12:08:26 +08:00
b2e6df07c8
session: Support Variable-Setting Hint SET_VAR ( #20232 )
2020-10-28 14:27:13 +08:00
fd84a91895
ddl, tikv: add delay during AddIndex DDL and remove schema check for async commit ( #20550 )
2020-10-28 11:48:34 +08:00