Commit Graph

710 Commits

Author SHA1 Message Date
ekexium 6e02f61a2f Merge remote-tracking branch 'upstream/master' into atomic
Signed-off-by: ekexium <ekexium@gmail.com>
2021-04-20 15:18:20 +08:00
Nick Cameron bdff7e35df
Merge pull request #258 from ekexium/unify-locking
Make get_for_update work for optimistic txns
2021-04-20 09:21:28 +12:00
Ziqian Qin 18242889cf
Merge branch 'master' into unify-locking 2021-04-19 19:12:49 +08:00
ekexium ef5f1705cf doc: rephrase doc
Signed-off-by: ekexium <ekexium@gmail.com>
2021-04-19 15:09:30 +08:00
Nick Cameron 87d5cbbe23
Merge pull request #266 from ekexium/raw-resolve-lock
Don't resolve lock in raw requests
2021-04-19 09:37:42 +12:00
Nick Cameron e320efa51c
Merge pull request #254 from ekexium/pessimistic-lock-primary-key
Don't set primary key in a pessimistic lock request until it succeeds
2021-04-19 09:36:10 +12:00
Nick Cameron 2b0db78632
Merge branch 'master' into raw-resolve-lock 2021-04-16 15:45:16 +12:00
Nick Cameron 2247c5d53b
Merge branch 'master' into pessimistic-lock-primary-key 2021-04-16 15:42:57 +12:00
Nick Cameron 5688e0810b
Merge pull request #265 from gfreezy/coprocessor-v2-protocol
add new protocol messages for coprocessor_v2
2021-04-16 15:41:12 +12:00
Nick Cameron c5612b9cb9
Merge branch 'master' into coprocessor-v2-protocol 2021-04-15 20:35:50 +12:00
Nick Cameron f2f96f04a4
Merge pull request #264 from hi-rustin/rustin-patch-fix
Remove rust-toolchain file
2021-04-15 20:35:23 +12:00
Ziqian Qin 99dce7495f
Merge branch 'master' into raw-resolve-lock 2021-04-15 16:13:54 +08:00
ekexium 661b56ab49 opt: don't resolve lock in raw requests
Signed-off-by: ekexium <ekexium@gmail.com>
2021-04-15 16:12:26 +08:00
Alex.F 3c7ba5bb0d add trailing empty line
Signed-off-by: Alex.F <gfreezy@gmail.com>
2021-04-15 15:03:35 +08:00
Alex.F c81115778e add protobuf for coprocessor_v2
Signed-off-by: Alex.F <gfreezy@gmail.com>
2021-04-15 15:01:48 +08:00
Ziqian Qin 83f05a06ef
Merge branch 'master' into pessimistic-lock-primary-key 2021-04-15 11:00:44 +08:00
ekexium 2e10ab9a6a refactor: primary_key_or
Signed-off-by: ekexium <ekexium@gmail.com>
2021-04-15 11:00:26 +08:00
Nick Cameron ba7a5f2862
Merge branch 'master' into atomic 2021-04-15 14:04:25 +12:00
Nick Cameron dc85164246
Merge branch 'master' into rustin-patch-fix 2021-04-15 14:00:43 +12:00
Nick Cameron e259488559 Revert "add protobuf for coprocessor_v2"
This reverts commit 65c0292d20.
2021-04-15 13:57:44 +12:00
二手掉包工程师 4ca54e1db8
Merge branch 'master' into rustin-patch-fix 2021-04-15 09:11:08 +08:00
hi-rustin dfd2955541 Remove rust-toolchain file
Signed-off-by: hi-rustin <rustin.liu@gmail.com>
2021-04-15 09:10:48 +08:00
Nick Cameron 0ca4cae0c7
Merge pull request #263 from gfreezy/coprocessor-v2-protocol
add new protocol messages for coprocessor_v2
2021-04-15 09:24:08 +12:00
Nick Cameron 75d1719902
Merge branch 'master' into coprocessor-v2-protocol 2021-04-15 09:23:18 +12:00
Nick Cameron 1dbbb14968
Merge pull request #259 from ekexium/allow-rollback-after-commit-failure
Allow txn to rollback after commit failed
2021-04-15 09:22:41 +12:00
Alex.F 65c0292d20 add protobuf for coprocessor_v2
Signed-off-by: Alex.F <gfreezy@gmail.com>
2021-04-14 23:26:47 +08:00
ekexium f91708d907 test: add a simple test for atomic operations
Signed-off-by: ekexium <ekexium@gmail.com>
2021-04-14 18:48:38 +08:00
ekexium 9c898959f3 feat: implement atomic requests
Signed-off-by: ekexium <ekexium@gmail.com>
2021-04-14 17:22:51 +08:00
ekexium 12f2aa8492 update proto files
Signed-off-by: ekexium <ekexium@gmail.com>
2021-04-14 16:37:55 +08:00
ekexium b317ab73cb Merge remote-tracking branch 'upstream/master' into unify-locking 2021-04-14 14:37:40 +08:00
ekexium 624a53b8d7 refactor: rename to 'get_primary_key_or_insert'
Signed-off-by: ekexium <ekexium@gmail.com>
2021-04-14 14:19:38 +08:00
ekexium bdf020f76b Merge remote-tracking branch 'upstream/master' into pessimistic-lock-primary-key
Signed-off-by: ekexium <ekexium@gmail.com>
2021-04-14 14:05:12 +08:00
Nick Cameron 2baa2a192b
Merge branch 'master' into allow-rollback-after-commit-failure 2021-04-14 15:51:44 +12:00
Nick Cameron 0314d636ba
Merge pull request #253 from nrc/unlock-delete
Fix two bugs with insert and delete
2021-04-14 13:35:10 +12:00
Nick Cameron e8a9175adb Fix two bugs with insert and delete
Fixes #234

Signed-off-by: Nick Cameron <nrc@ncameron.org>
2021-04-14 11:40:34 +12:00
ekexium 53eb27d92c fix: allow txn to rollback after commit failed
Signed-off-by: ekexium <ekexium@gmail.com>
2021-04-13 10:54:56 +08:00
ekexium d3e5ffbde1 feat: make get_for_update work for optimistic txns
Signed-off-by: ekexium <ekexium@gmail.com>
2021-04-12 15:58:48 +08:00
ekexium fc47bb93b6 fix: don't set primary key in a pessimistic lock request until it succeeds
Signed-off-by: ekexium <ekexium@gmail.com>
2021-04-09 16:50:26 +08:00
Nick Cameron 4870985dcd
Merge pull request #252 from ekexium/batch-get-for-update
Fix batch_get_for_update
2021-04-09 14:19:56 +12:00
Nick Cameron c61551c4ad
Merge branch 'master' into batch-get-for-update 2021-04-09 14:19:26 +12:00
Nick Cameron 9320198ab1 Deny warnings on CI
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2021-04-09 14:10:13 +12:00
ekexium 6f6834a428 test: read fewer keys in txn_write_million to satisfy grpc message size limit
Signed-off-by: ekexium <ekexium@gmail.com>
2021-04-07 17:33:20 +08:00
ekexium 4120b76455 style: resolve comments
Signed-off-by: ekexium <ekexium@gmail.com>
2021-03-18 14:28:43 +08:00
ekexium d789cc650b Merge remote-tracking branch 'upstream/master' into batch-get-for-update
Signed-off-by: ekexium <ekexium@gmail.com>
2021-03-15 18:48:43 +08:00
ekexium 24af21c3b9 test: don't test 1pc until we fix it
Signed-off-by: ekexium <ekexium@gmail.com>
2021-03-15 18:34:56 +08:00
ekexium 260bcd70cd test: test multi-region batch_get_for_update
Signed-off-by: ekexium <ekexium@gmail.com>
2021-03-15 16:15:33 +08:00
ekexium 555981eae7 doc: update
Signed-off-by: ekexium <ekexium@gmail.com>
2021-03-15 15:23:25 +08:00
ekexium a3f814ab1f feat: fix batch_get_for_update
Signed-off-by: ekexium <ekexium@gmail.com>
2021-03-12 15:58:47 +08:00
Zijie Lu 486a4b2e14
Automatic heartbeat (#236)
* Remove retry_response_stream

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* Move store-related functions from request to store

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* Be a little more consistent with the types in request ctor functions

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* Add request ctor functions taking high-level types

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* Refactor the command-abstraction into a composable plan abstraction

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* Support sending heartbeats automatically

Signed-off-by: Zijie Lu <wslzj40@gmail.com>

* nitpick

Signed-off-by: Zijie Lu <wslzj40@gmail.com>

* Add heartbeat check

Signed-off-by: Zijie Lu <wslzj40@gmail.com>

* Fix use

Signed-off-by: Zijie Lu <wslzj40@gmail.com>

* fix

Signed-off-by: Zijie Lu <wslzj40@gmail.com>

* fix complie errors

Signed-off-by: Zijie Lu <wslzj40@gmail.com>

* Address review comments

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* remove heartbeat plan and use spawn

Signed-off-by: Zijie Lu <wslzj40@gmail.com>

* Fix build errors and replace RwLock

Signed-off-by: Zijie Lu <wslzj40@gmail.com>

* Address review comments

Signed-off-by: Nick Cameron <nrc@ncameron.org>

* Add unit test

Signed-off-by: Zijie Lu <wslzj40@gmail.com>

* nitpick

Signed-off-by: Zijie Lu <wslzj40@gmail.com>

* nitpick

Signed-off-by: Zijie Lu <wslzj40@gmail.com>

* Fix deadlock and unit tests

Signed-off-by: Zijie Lu <wslzj40@gmail.com>

* Add test for optimistic_heart

Signed-off-by: Zijie Lu <wslzj40@gmail.com>

* Add mod.rs for tests

Signed-off-by: Zijie Lu <wslzj40@gmail.com>

* Fix failpoint tests

Signed-off-by: Zijie Lu <wslzj40@gmail.com>

* Address review comments

Signed-off-by: Zijie Lu <wslzj40@gmail.com>

* Address review comments

Signed-off-by: Zijie Lu <wslzj40@gmail.com>

* Address review comments

Signed-off-by: Zijie Lu <wslzj40@gmail.com>

* Fix tests

Signed-off-by: Zijie Lu <wslzj40@gmail.com>

* Fix clippy errors

Signed-off-by: Zijie Lu <wslzj40@gmail.com>

* Address review comments

Signed-off-by: Zijie Lu <wslzj40@gmail.com>

* Remove bg_worker

Signed-off-by: Andy Lok <andylokandy@hotmail.com>

* Fix test

Signed-off-by: Zijie Lu <wslzj40@gmail.com>

* rename to failpoint_tests

Signed-off-by: Zijie Lu <wslzj40@gmail.com>

* Update transaction.rs

* Update transaction.rs

Signed-off-by: Andy Lok <andylokandy@hotmail.com>

Co-authored-by: Nick Cameron <nrc@ncameron.org>
Co-authored-by: Andy Lok <andylokandy@hotmail.com>
2021-03-11 11:01:36 +13:00
Nick Cameron 405535c777
Merge pull request #248 from ekexium/reduce-panic
Reduce some panics
2021-03-10 08:59:10 +13:00