Commit Graph

15 Commits

Author SHA1 Message Date
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
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
91cd12f83f store: update the PD client to support the Global/Local TSO (#20980) 2020-11-19 15:30:43 +08:00
9af236c1b7 tikv: support external consistency when async commit is on (#20276)
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2020-11-12 14:43:23 +08:00
7c65ca90df store/tikv: Make most of async commit's unit test able to run with TiKV (#20933)
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
2020-11-11 20:54:23 +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
fd84a91895 ddl, tikv: add delay during AddIndex DDL and remove schema check for async commit (#20550) 2020-10-28 11:48:34 +08:00
81fa1b37e8 *: refactor GetSnapshot (#20475)
Signed-off-by: Shuaipeng Yu <jackysp@gmail.com>
2020-10-16 11:30:43 +08:00
931323463f txn: Add some more unit tests for async commit (#20073)
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2020-10-12 16:59:39 +08:00
0cdd24d36b tikv: support secondaries key size limit for async commit (#20167)
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2020-09-28 12:03:12 +08:00
09feccb529 store/tikv: Add a test that checks prewrites properly set secondaries for async commit transactions (#20178)
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
2020-09-25 13:27:38 +08:00
592b244e51 tikv: set undetermined error when async commit prewrite rpc fails (#20150)
Signed-off-by: Yilin Chen <sticnarf@gmail.com>
2020-09-23 18:06:08 +08:00
5435980006 store/tikv: implement async commit version of resolve locks (#18467) 2020-09-09 08:09:51 +08:00