Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
28 commits
Select commit Hold shift + click to select a range
a5e2605
*: add basic support for shared lock (#1784)
zyguan Dec 3, 2025
5ec4211
txn: add metrics, slowlog and trace span for shared locks (#1815)
you06 Dec 4, 2025
44e9477
txnkv: fix the issue that lockKeys doesn't release the internal rlock…
zyguan Dec 12, 2025
9f1d92d
test: add a new shared lock test (#1824)
you06 Dec 19, 2025
36a8441
remove useless files
you06 Dec 22, 2025
f1ad54c
Merge branch 'master' into master-shared-lock
you06 Jan 8, 2026
adb1ac7
Revert "remove useless files"
you06 Jan 20, 2026
410c61f
update kvproto
you06 Jan 20, 2026
9e8c85b
Merge branch 'master-shared-lock' of github.com:you06/client-go into …
you06 Jan 20, 2026
fa8abd2
Merge branch 'master' into master-shared-lock
you06 Jan 20, 2026
7ed3a8a
fix typo
you06 Jan 20, 2026
82d4200
Merge branch 'master-shared-lock' of github.com:you06/client-go into …
you06 Jan 20, 2026
8200d3a
fix imports
you06 Jan 20, 2026
a136521
Merge branch 'master' into master-shared-lock
you06 Jan 28, 2026
34fca37
fix lint
you06 Jan 28, 2026
434eff0
address comments
you06 Feb 3, 2026
73cbd73
handle wrapped shared locks
you06 Feb 3, 2026
fd2f091
Merge branch 'master' into master-shared-lock
you06 Feb 5, 2026
71d24aa
add as a persistentFlags
you06 Feb 5, 2026
714bfc4
Merge remote-tracking branch 'you06/master-shared-lock' into master-s…
you06 Feb 5, 2026
3f7cb44
Merge branch 'master' into master-shared-lock
you06 Feb 5, 2026
8d20ce8
fix test
you06 Feb 5, 2026
0589cfc
Merge branch 'master-shared-lock' of github.com:you06/client-go into …
you06 Feb 5, 2026
04032dc
Merge branch 'master' into master-shared-lock
you06 Feb 5, 2026
cc9a471
skip TestSharedLock in local test
you06 Feb 5, 2026
f9f60f8
fix test
you06 Feb 5, 2026
7a8a016
Merge branch 'master' into master-shared-lock
you06 Feb 5, 2026
9c8cc20
skip shared lock test in shared_lock_test.go
you06 Feb 5, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion integration_tests/2pc_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ func (s *testCommitterSuite) SetupSuite() {

func (s *testCommitterSuite) TearDownSuite() {
s.Nil(failpoint.Disable("tikvclient/injectLiveness"))
atomic.StoreUint64(&transaction.CommitMaxBackoff, 20000)
atomic.StoreUint64(&transaction.ManagedLockTTL, 20000)
atomic.StoreUint64(&transaction.CommitMaxBackoff, 40000)
}

func (s *testCommitterSuite) SetupTest() {
Expand Down
3 changes: 2 additions & 1 deletion integration_tests/pipelined_memdb_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,7 @@ func (s *testPipelinedMemDBSuite) TestPipelinedDMLFailedByPKRollback() {
func (s *testPipelinedMemDBSuite) TestPipelinedDMLFailedByPKMaxTTLExceeded() {
originManagedTTLVal := atomic.LoadUint64(&transaction.ManagedLockTTL)
originMaxPipelinedTxnTTL := atomic.LoadUint64(&transaction.MaxPipelinedTxnTTL)
restoreConf := restoreGlobalConfFunc() // Get the restore function BEFORE changing config
atomic.StoreUint64(&transaction.ManagedLockTTL, 100) // set to 100ms
atomic.StoreUint64(&transaction.MaxPipelinedTxnTTL, 200) // set to 200ms
updateGlobalConfig(func(conf *config.Config) {
Expand All @@ -483,7 +484,7 @@ func (s *testPipelinedMemDBSuite) TestPipelinedDMLFailedByPKMaxTTLExceeded() {
defer func() {
atomic.StoreUint64(&transaction.ManagedLockTTL, originManagedTTLVal)
atomic.StoreUint64(&transaction.MaxPipelinedTxnTTL, originMaxPipelinedTxnTTL)
restoreGlobalConfFunc()
restoreConf()
}()

txn, err := s.store.Begin(tikv.WithDefaultPipelinedTxn())
Expand Down
Loading
Loading