Commit Graph

493 Commits

Author SHA1 Message Date
cc5e161ac0 *: use tikv/client-go/v2 (#25359) 2021-06-11 17:24:35 +08:00
69274d8864 store: refine the error handling and retry mechanism for stale read (#24956) 2021-06-03 17:52:26 +08:00
ec12617da7 *: update BR (#24905) 2021-05-28 14:17:35 +08:00
e87d035937 infoschema, executor, txn: implement DATA_LOCK_WAITS table (#24750) 2021-05-27 17:57:36 +08:00
051524ce95 kv: remove DelOption method (#24762) 2021-05-25 17:53:34 +08:00
2580240dde *: pass sql, plan digest down to KV request (#24854) 2021-05-25 15:47:33 +08:00
98f0d76bc7 *: clean up the deserted syntax of START TRANSACTION READ ONLY (#24813) 2021-05-25 14:25:33 +08:00
d5f01e1477 kv: extract subset of tikv.KeyFlags (#24739) 2021-05-25 12:35:33 +08:00
8fb29eb17e kv: move TxnScope into kv (#24715) 2021-05-19 20:01:42 +08:00
49d1eaa409 txn: break dependency from store/tikv to tidb/kv cause by TransactionOption (#24656) 2021-05-19 17:39:42 +08:00
e9488ce2ee *: implement tidb_bounded_staleness built-in function (#24328) 2021-05-18 14:15:40 +08:00
2df8c3bfd1 store/tikv: resolve ReplicaReadType dependencies (#24653) 2021-05-17 14:09:39 +08:00
b7c22aa31d kv: remove UnionStore interface (#24625) 2021-05-13 21:29:39 +08:00
d2bdfd51b7 store/tikv: move transaction options out to /kv (#24619) 2021-05-13 17:49:39 +08:00
b1d134d7d9 txn: Add txn state's view (#22908) 2021-05-12 19:25:40 +08:00
7c1997517c txn: Use TransactionOption in store/tikv module (#23255) 2021-05-11 11:17:38 +08:00
0ec8f2d9fb store/tikv: remove use of Priority transaction options in store/tikv (#24360) 2021-04-29 13:59:57 +08:00
619c472005 store/tikv: remove IsolationLevel option (#24335) 2021-04-28 15:25:56 +08:00
75913fdc9c executor,kv: support timebounded staleness transaction (#23866) 2021-04-27 15:44:00 +08:00
7e15333920 store/tikv: move kv.TxnInfo to store/tikv (#24216) 2021-04-26 23:27:56 +08:00
6f068bcd1e store/tikv:move LockExpire error from tikv package to tidb since it i… (#24269) 2021-04-26 19:27:56 +08:00
bd2553734b expression: support enum pushdown (#22686) 2021-04-26 18:51:56 +08:00
c25042543a store/tikv: move lock wait time to store/tikv (#24217) 2021-04-25 10:43:55 +08:00
39762c9d19 store/tikv: move kv.Variables from tidb/kv to tikv/kv package (#24189) 2021-04-23 10:41:54 +08:00
3aa9710868 *: add missing TestingT (#24201) 2021-04-22 19:51:53 +08:00
6faec865c0 store/tikv:move MaxTxnTimeUse from kv to store/tikv (#23995) 2021-04-16 10:53:51 +08:00
3e58fbf4d9 store/tikv:move LockCtx from kv to tikv/kv (#24020) 2021-04-15 22:23:53 +08:00
a2317a74d6 kv/kv.go:remove UpdateFlags from interface MemBuffer (#23983) 2021-04-14 11:05:51 +08:00
72ebeddfa4 store/tikv: move BufferBatchGetter from tidb/kv to tikv/unionstore (#23871)
Co-authored-by: disksing <i@disksing.com>
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-04-12 10:58:22 +08:00
69675ead57 store/tikv: move CommitDetails and LockDetails to tikv/util (#23854)
Signed-off-by: disksing <i@disksing.com>

Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
2021-04-09 20:56:24 +08:00
0402268a16 store, kv: Add information about async commit/1pc to tidb_last_txn_info (#23833) 2021-04-06 16:30:31 +08:00
3711df6973 go.mod:update br to the newest master (#23654) 2021-03-30 13:27:24 +08:00
647ba7f265 kv/union_store:remove some unused type (#23620) 2021-03-29 16:49:24 +08:00
f45bd9bd21 kv/union_store:move implementation of unionstore into store/tikv (#23490) 2021-03-26 16:40:29 +08:00
efe172b0e0 store/tikv:move option from kv to tikv, and make define as a normal int (#23171) 2021-03-22 20:13:36 +08:00
b983856ddf store/tikv:mv kv.ReplicaReadType to tikv (#23376) 2021-03-19 21:19:36 +08:00
080ed4ee7b store/tikv:move mockCommitErrorEnable from kv to tikv since it is only used in tikv (#23355)
Co-authored-by: Ti Chi Robot <71242396+ti-chi-bot@users.noreply.github.com>
Co-authored-by: disksing <i@disksing.com>
2021-03-17 17:13:30 +08:00
6b69883410 MPP: Kill mpp queries (#23056)
* run ok

* update comments

* send cancle cmd to all tiflash stores

* updated

* log error if sending failed

* update comments

* disable send task when being killed

* update function name

* add test for kill mpp when mocking grpc hang

* update imports

* update comments

* clean go.mod

* updated

* use cancel to avoid goroutine leak, ensure cancellMppTasks being called just once

* update go.mod

* add test for avoiding goroutine leak

* update test

* update test

* remove unnecessary leak test
2021-03-12 17:27:30 +08:00
b8f6ac0dd3 *: fix wrong replace or insert-on-dup behavior on prefixed clustered index (#23091) 2021-03-09 16:54:55 +08:00
29908c67e7 store, executor: support stale read for tikv RPCContext (#22176) 2021-03-05 18:12:55 +08:00
707cb0a942 kv: unify the BeginWith... function into one (#23130) 2021-03-05 17:56:56 +08:00
5f73c822ca kv/union_store:remove tableinfo from union_store (#22976)
Co-authored-by: disksing <i@disksing.com>
2021-03-04 16:30:42 +08:00
745d20aa64 store/tikv_driver:move MemManager from KVStore to tikvStore (#22728) 2021-02-25 15:53:11 +08:00
35534ae752 *: apply golangci-lint to the new code (#22824) 2021-02-24 18:24:03 +08:00
9374724231 kv/typo: fix the description for GetMemCache (#22766)
Signed-off-by: mwish <anmmscs_maple@qq.com>
2021-02-19 00:15:27 +08:00
2fc1703a9c session, exectutor: Guarantee external consistency by default; Add an explicit begin statement to disable it (#22597)
Signed-off-by: ekexium <ekexium@gmail.com>
2021-02-04 16:09:46 +08:00
7a275a77bb store/tikv: move EtcdBackend out (#22676)
Signed-off-by: disksing <i@disksing.com>
2021-02-03 14:59:57 +08:00
579421f6e0 store/tikv: export types (#22645)
Co-authored-by: Shirly <wuxuelian@pingcap.com>
2021-02-01 17:18:39 +08:00
68aaa2fa7e *: fix auto-id allocate tracing (#22371) 2021-01-13 12:19:58 +08:00
8cc5e170e9 *: using a lru cache in cachedb (#22312)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2021-01-09 14:48:58 +08:00