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
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
e01f5e41c2
store, session: Introduce system variable to control ratelimit action ( #21259 )
2020-11-25 20:27:38 +08:00
4246568d20
domain, kv: release table which was unlocked ( #21180 )
2020-11-23 16:27:00 +08:00
36df6f42c6
kv: release memory cache if it is too large ( #21013 )
2020-11-13 13:21:57 +08:00
ee77412f54
executor, kv, store/tikv: support cache for point select ( #20396 )
2020-11-11 10:41:49 +08:00
8d35f17c17
Update the errors dependence to the latest version ( #20917 )
2020-11-10 09:50:39 +08:00
369c12f779
[planner, executor, kv]: refine and extract mpp codes to the right place ( #20691 )
2020-11-02 14:30:47 +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
272f964031
executor: support global kill ( #17649 )
2020-10-27 19:39:20 +08:00
0d613a2dfa
[executor, store/tikv]: implement a prototype for MPP framework. ( #19954 )
2020-10-26 14:46:47 +08:00
2f067c0542
*: redact arguments for Error ( #20436 )
2020-10-21 14:44:08 +08:00
62190f376d
2pc: reduce memory footprint by using a more compact mutations list ( #20412 )
2020-10-16 19:38:14 +08:00
81fa1b37e8
*: refactor GetSnapshot ( #20475 )
...
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com >
2020-10-16 11:30:43 +08:00
e0c32b6f0e
2pc: iterator and collector of new streaming committer ( #20173 )
2020-09-26 19:33:37 +08:00
32d86e26c2
*: fix message for duplicate entry error ( #20203 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-09-25 16:10:56 +08:00
0b7c7167d1
planner,executor: support global index for IndexScan and IndexLookUpReader ( #19821 )
2020-09-24 20:50:28 +08:00
205f02125f
executor: add an OOMAction for copIterator to adaptive control the memory usage ( #19246 )
2020-09-22 14:27:55 +08:00
ef7772dca4
kv: fix unsafe operation on value returned from memdb ( #20063 )
2020-09-17 17:18:04 +08:00
70a567e4cb
session: refine error message desensitization ( #19409 )
2020-09-15 16:00:01 +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
8446ec9e08
tikv: support scatter region with option api ( #19844 )
2020-09-11 14:02:34 +08:00
449587a085
*: using standard error to replace terror ( #19425 )
2020-09-08 20:15:51 +08:00
ce849c3e19
*: remove DirtyDB and DirtyTable to reduce memory usage ( #19042 )
2020-09-04 16:50:36 +08:00
915d84d7ad
executor: add pessimistic lock keys runtime information ( #19547 )
...
Signed-off-by: crazycs520 <crazycs520@gmail.com >
2020-09-01 20:46:31 +08:00
438945d294
*: enable clustered index by default ( #19582 )
2020-08-31 16:54:51 +08:00
d99830ae4e
server: support new frame item for cluster index ( #19283 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-20 15:45:29 +08:00
ea3da25984
*: record more rpc runtime information in cop runtime stats ( #18916 )
2020-08-18 16:34:07 +08:00
07ae6078e8
*: support clustered index for fast analyze ( #18767 )
2020-08-07 19:22:14 +08:00
2d54976495
*: convert lockKeys to key flag ( #18966 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-07 10:23:59 +08:00
574540aa06
fix pessimistic check ( #19004 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-06 14:00:43 +08:00
b363937744
transaction: fix union select for update race ( #19006 )
...
* transaction: fix LockKeys race
* do not update delta for lock keys
* fix more race
* fix another race
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-06 09:24:17 +08:00
ef7c197271
kv: cleanup outdated code ( #18658 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-04 11:02:17 +08:00
d0639b0056
*: use the newly designed memdb ( #18657 )
...
* *: use the newly designed memdb
* address comments
* remove duplicated comments
Co-authored-by: Evan Zhou <coocood@gmail.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-03 20:51:05 +08:00
504764c506
kv: update tests to use new memdb ( #18656 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-03 15:48:53 +08:00
73a135de96
kv: complete the implementation of the new memdb ( #18655 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-08-03 12:29:35 +08:00
6ce8f0f56a
txn: support pessimistic transaction amend for specific ddls ( #18447 )
2020-07-29 11:35:31 +08:00
8b19d67bad
executor: add runtime information for point-get executor ( #18666 )
2020-07-28 14:20:36 +08:00
94fc46424f
kv: fix typos ( #18645 )
...
Co-authored-by: goroutine <ngaut@users.noreply.github.com >
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-07-20 12:46:10 +08:00
d941ff5cc8
kv: add partial implementation of new memdb ( #18654 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-07-18 13:50:41 +08:00
df60c32286
kv: fix typos ( #18626 )
...
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com >
2020-07-16 14:19:18 +08:00
761a961ba0
kv: refactor MemBuffer and reduce the memory usage ( #18372 )
2020-07-15 15:26:25 +08:00
3cd5260773
ddl: collect actionTypes for schema change ( #18195 )
...
* record action types in schema change history
* change comments
* remove comment
* refactor, remove some params and return values
* change value to pointer, remove useless comments
* refactor comments
* change return value
* refactor
* remove all info
* fix action type append
* update comment
Co-authored-by: Lynn <zimu_xia@126.com >
2020-07-08 11:41:09 +08:00
180c021271
kv: fix KVVars not set on Transaction ( #18351 )
2020-07-03 16:20:02 +08:00
a99ae5340e
executor: padding short common handle ( #18332 )
2020-07-02 18:28:28 +08:00
66c8e10e6e
kv: make txn entry size limit configurable ( #18231 )
2020-06-29 12:03:10 +08:00
978370f7cb
executor: add new agg function APPROX_COUNT_DISTINCT ( #17175 )
2020-06-18 22:00:14 +08:00
73c4673f30
*: support update/delete/insert ignore/duplicate update in single cluster index table ( #17721 )
2020-06-08 20:55:31 +08:00
6bb9b30e74
ddl: fix pre-split region timeout constraint not work when create table ( #17459 )
2020-06-03 11:18:27 +08:00