client-go/integration_tests
MyonKeminta b5eb031edd
Support setting assertions and receiving assertion errors for Prewrite requests (#311)
* support set assertion in 2pc mutation

Signed-off-by: lysu <sulifx@gmail.com>
Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Receive assertion fail errors from TiKV

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Add test log

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Remove verbose log

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* update kvproto

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Add metrics counter for assertions

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Address some comments

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Try to optimize assertion for pessimistic transactions

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Fix panic on optimistic transactions

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Add InitCheckExistence method for LockCtx

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Support assertion level

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Check assertion level before doing assertion on client side

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Test bitoperations of menBUfferMutations.Push

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Add test for assertion in tikv

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Support run assertion test with unistore

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Fix test

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Fix license

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Fix test

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* export DeleteKey

Signed-off-by: ekexium <ekexium@gmail.com>

* Renaming DeleteKey

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* fix build

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Address comments

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Avoid panic when running with old version of TiKV; Add schema check on fast assertion

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Add test for fast assertion

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Add test for pessimistic lock check existence

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Test assertion takes no effect if amending is enabled

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Add HasAssertUnknown function

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Add comments

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Cleanup locks after assertion fail

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* update tidb dependency

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Fix panic in TestIllegalTSO

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Address comments

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Add comments

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Update dependency to tidb

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

* Fix test

Signed-off-by: MyonKeminta <MyonKeminta@users.noreply.github.com>

Co-authored-by: lysu <sulifx@gmail.com>
Co-authored-by: MyonKeminta <MyonKeminta@users.noreply.github.com>
Co-authored-by: ekexium <ekexium@gmail.com>
2022-02-10 15:31:32 +08:00
..
raw rawkv: split BatchPut and BatchPutTTL (#414) 2022-01-06 02:46:37 -08:00
1pc_test.go fix license (#267) 2021-08-15 01:48:01 +08:00
2pc_test.go Support setting assertions and receiving assertion errors for Prewrite requests (#311) 2022-02-10 15:31:32 +08:00
assertion_test.go Support setting assertions and receiving assertion errors for Prewrite requests (#311) 2022-02-10 15:31:32 +08:00
async_commit_fail_test.go *: replace pingcap/errors with pkg/errors (#357) 2021-11-01 11:59:52 +08:00
async_commit_test.go txnkv: read through locks (#380) 2021-12-01 16:35:10 +08:00
client_fp_test.go *: replace pingcap/errors with pkg/errors (#357) 2021-11-01 11:59:52 +08:00
delete_range_test.go fix license (#267) 2021-08-15 01:48:01 +08:00
go.mod Support setting assertions and receiving assertion errors for Prewrite requests (#311) 2022-02-10 15:31:32 +08:00
go.sum Support setting assertions and receiving assertion errors for Prewrite requests (#311) 2022-02-10 15:31:32 +08:00
interceptor_test.go introduce RPC interceptor mechanism (#389) 2021-12-18 13:03:06 +08:00
isolation_test.go fix license (#267) 2021-08-15 01:48:01 +08:00
lock_test.go txnkv: read through locks (#380) 2021-12-01 16:35:10 +08:00
main_test.go txnkv/transaction: remove use of errors.Trace (#351) 2021-10-27 10:13:37 +08:00
prewrite_test.go fix license (#267) 2021-08-15 01:48:01 +08:00
range_task_test.go fix license (#267) 2021-08-15 01:48:01 +08:00
resource_tag_test.go txnkv: add callback for setting ResourceGroupTag (#368) 2021-11-14 19:11:14 -08:00
safepoint_test.go *: replace pingcap/errors with pkg/errors (#357) 2021-11-01 11:59:52 +08:00
scan_mock_test.go fix license (#267) 2021-08-15 01:48:01 +08:00
scan_test.go txnkv: set TiKV RC for weak-consistency transactions (#407) 2021-12-29 13:16:14 +08:00
snapshot_fail_test.go txnkv: read through locks (#380) 2021-12-01 16:35:10 +08:00
snapshot_test.go txnkv: set TiKV RC for weak-consistency transactions (#407) 2021-12-29 13:16:14 +08:00
split_test.go implement pd's global config (#405) 2022-01-06 20:00:26 -08:00
store_test.go fix license (#267) 2021-08-15 01:48:01 +08:00
ticlient_test.go fix license (#267) 2021-08-15 01:48:01 +08:00
tikv.toml separate rawkv and txnkv tests (#295) 2021-09-01 22:05:16 +08:00
util_test.go integration_tests: remove use of errors.Trace (#327) 2021-10-13 06:58:44 +00:00