Releases: tikv/client-go
Releases · tikv/client-go
v2.0.7
What's Changed
- *: remove deprecated linters by @disksing in #726
- metrics: seperate metrics with source scope for txn command by @cfzjywxk in #723
- region_cache: support non-block read region by @you06 in #725
- region_cache: support <engine_role, write> for disaggregated tiflash by @guo-shaoge in #728
- *: update pd client by @CabinfeverB in #734
- txn: support force locking and lock only if exists be used together by @MyonKeminta in #727
- attach keyspace_id for manual compact request by @iosmanthus in #737
- add api_version for mpp task meta by @iosmanthus in #738
- [Metrics] Supply extra metrics to monitor the flows under
prefer-leader
mode. by @LykxSassinator in #716 - support time detail v2 by @glorv in #729
- Introduce the RURuntimeStats by @JmPotato in #732
- resource_control: consider default as a normal group by @nolouch in #741
- internal: treat default resource group normally by @BornChanger in #708
- compatible batch copr with load-based replica read by @you06 in #739
- refine keyspace request encoding by @iosmanthus in #742
- metric: fix the incorrect txn size metric usages by @cfzjywxk in #746
- gomod: update pd client by @HuSharp in #743
- Log request info for label warning by @dveeden in #744
- fix data race by @Smityz in #736
- Add exitAggressiveLockingIfInapplicable function and call within mutex of lockKeys by @MyonKeminta in #749
- upgrade pd client by @rleungx in #755
- fix api v2 decode of region bucket's keys by @iosmanthus in #757
- refactor decoding buckets with new interface method: DecodeBucketKeys by @iosmanthus in #760
- Support return TiFlash system table by grpc by @Lloyd-Pottiger in #759
- Finer
is_retry_request
settings by @ekexium in #763 - For KeyIsLocked error reported for timeout, if a lock is recently updated, don't try to resolve it. by @ekexium in #758
- metrics: add txn ttl lifetime by @jackysp in #766
New Contributors
- @BornChanger made their first contribution in #708
- @Lloyd-Pottiger made their first contribution in #759
Full Changelog: v2.0.6...v2.0.7
v2.0.6
What's Changed
- Increase consistent hash virtual nodes to 200 for better balance by @breezewish in #688
- internal: update
FlashbackInProgress
error msg by @Defined2014 in #692 - *: update pd client by @disksing in #694
- Add metrics and statistics about aggressive locking by @MyonKeminta in #687
- ReadMode: introduce AutoFollowerRead mechanism by adding a new
ReadMode == PreferLeader
by @LykxSassinator in #671 - integration: update tidb to master by @disksing in #695
- resource_control: fix the calculation of write request total write bytes by @glorv in #691
- rawkv: Fix context leak in rawkv.BatchPut by @pingyu in #697
- Consider the number of replicas when calculating RU by @JmPotato in #684
- resource_control: change the log level by @nolouch in #700
- upgrade pd client version by @nolouch in #701
- rawkv: Fix context leak in BatchDelete by @pingyu in #704
- fix: lock_if_exist + aggressive locking by @ekexium in #705
- attach keyspace_id to tikv/tiflash requests by @iosmanthus in #682
- Support load-based replica read by @sticnarf in #675
- ci: fix compatibility test due to the low GO version by @nolouch in #711
- tikv: configurable pool by @hawkingrei in #714
- update golang.org/x/net by @disksing in #717
- txn: set group name in twoPhaseCommitter by @glorv in #718
- fix attach api ctx error for unknown requests like StoreSafeTS by @iosmanthus in #720
- metric: seperate source for txn cmd by @cfzjywxk in #721
- *: Update pd client by @CabinfeverB in #722
- region_request: handle resource group error before Backoff by @CabinfeverB in #719
Full Changelog: v2.0.5...v2.0.6
v2.0.5
What's Changed
- add resource group name in request context by @glorv in #650
- *: remove the support of
amend transaction
by @wjhuang2016 in #635 - fit witness by @ethercflow in #633
- reformat codec and add keyspace support by @AmoebaProtozoa in #649
- Bug fix: fix the Round-Robin algorithm when "ReadMode == ReplicaReadMixed". by @LykxSassinator in #663
- Support learner replica read by @v01dstar in #643
- Add a background region cache GC goroutine by @sticnarf in #664
- add tombstone check by @Smityz in #660
- refactor: range task log with more accurate info by @fengou1 in #657
- client: update pd/client to repair kvproto compatibility by @HuSharp in #667
- fix integration test by @disksing in #673
- check API V2 key in DecodeKey by @iosmanthus in #666
- client: update pd client by @HuSharp in #674
- Introduce the resource control client by @JmPotato in #648
- update tidb version by @HuSharp in #676
- Rewind after region cache GC reaches the end by @sticnarf in #678
- Add gRPC connection monitor and fix related bug by @Smityz in #665
- update go version to 1.19 and config support both path and names by @HuSharp in #683
New Contributors
- @wjhuang2016 made their first contribution in #635
- @ethercflow made their first contribution in #633
- @LykxSassinator made their first contribution in #663
- @v01dstar made their first contribution in #643
- @Smityz made their first contribution in #660
- @fengou1 made their first contribution in #657
- @HuSharp made their first contribution in #667
Full Changelog: v2.0.4...v2.0.5
v2.0.4
What's Changed
- use goroutine pool to avoid the
runtime.newstack
call by @tiancaiamao in #637 - RuntimeStat: Clone
SnapshotRuntimeStats
Completely by @TonsnakeLin in #641 - region_cache: refine GetTiFlashComputeRPCContextByConsistentHash by @guo-shaoge in #644
- MinSafeTS support TiFlash by @hehechen in #642
- bind the goroutine pool with store and close on Close by @tiancaiamao in #645
- go.mod: update github.com/tiancaiamao/gp by @tiancaiamao in #652
- Fix incorrect insertion behavior in aggressive locking mode and add tests by @MyonKeminta in #651
- Fix security alert by @haojinming in #654
- fix data race in the LockKeys by @hawkingrei in #655
New Contributors
Full Changelog: v2.0.3...v2.0.4
v2.0.3
What's Changed
- tikv: skip 0 when call
getMinSafeTSByStores
by @Defined2014 in #615 - util: update GCTimeFormat to be the same as the value stored in PD by @Defined2014 in #616
- txn: add
txn_source
field in txn by @xiongjiwei in #617 - txn: make
txn_source
be u64 type by @xiongjiwei in #618 - fix: avoid data race when setting memdb footprint hook by @ekexium in #621
- fix data race in test by @hawkingrei in #624
- fix data race at the memChangeHook by @hawkingrei in #625
- go.mod: update kvproto to adapt flashback by @Defined2014 in #626
- Add aggressive-locking mechanism and support locking with conflict by @MyonKeminta in #528
- precompute min safe ts by @hihihuhu in #622
- fix: do not call onMemChange in alloc by @ekexium in #632
- don't call onMemChange before all work is done in memdb by @ekexium in #636
New Contributors
Full Changelog: v2.0.2...v2.0.3
v2.0.2
What's Changed
- *: update readme by @disksing in #430
- Add a columnFamily feature for client-go when use rawput in tikv by @joccau in #425
- integration: use less tidb code by @disksing in #431
- integration: replace some unistore with mockstore by @disksing in #432
- Fix incorrect LockNoWait value by @sticnarf in #435
- Add options parameters in API CompareAndSwap by @joccau in #433
- integration: try not to skip snapshotFailTest when run with tikv by @disksing in #445
- mockstore: fix assertion by @disksing in #446
- txn: support read-consistency read with tso checking by @cfzjywxk in #447
- region_cache: support buckets by @youjiali1995 in #439
- Update lock ttl when retry to pessimistic lock keys by @longfangsong in #417
- Return assertion failed error less prior to other kinds of errors by @MyonKeminta in #448
- fix the comment of TimeDetail by @ekexium in #451
- backoff: deep copy the needed fields for backoffer type by @cfzjywxk in #453
- reconnect when meets store-not-match errors by @youjiali1995 in #456
- config,txnkv: make txnCommitBatchSize adjustable by config by @jackysp in #457
- *: use global variable instead of config for
TxnCommitBatchSize
by @jackysp in #458 - fix compatibility test by @disksing in #463
- add comment for rawkv scans by @disksing in #462
- client: fix the race between connArray.Close() and connArray.Get() by @youjiali1995 in #465
- fix linter warning by @disksing in #470
- Add a failpoint to sleep before prewrite secondary by @ekexium in #460
- tikv:move split region request to pd by @qidi1 in #459
- tikv: check nil response of split region by @disksing in #472
- request: print original error if the recv failure is injected by @cfzjywxk in #474
- Revert "tikv:move split region request to pd (#459)" by @disksing in #476
- internal/unionstore: avoid panic and add log for tidb issue/34307 by @tiancaiamao in #482
- unionstore: make lock earlier by @xiongjiwei in #484
- region_cache: in some cases, LocateBucket should not return nil. by @SpadeA-Tang in #486
- Add backoff for error recovery in progress by @Connor1996 in #485
- fix data race on the KVSnapshot.interceptor by @hawkingrei in #489
- atomic PrewriteMaxBackoff by @hawkingrei in #488
- *: fix data race on the SetResourceGroupTagger by @hawkingrei in #491
- region_cache: rename LocateBucketV2 to LocateBucket and let the old LocateBucket be the internal function of the new LocateBucket by @SpadeA-Tang in #496
- fix the vulnerability of atomicity in async commit by @ekexium in #492
- region_cache: Add comments for LocateBucket by @SpadeA-Tang in #497
- metrics: add loading region cache duration by @you06 in #502
- txn: record resolving locks by @longfangsong in #473
- tiflash: Add TiFlash compact command by @breezewish in #504
- Fix incorrect clear of resolving array by @sticnarf in #507
- support find stores with tiflash_mpp label by @guo-shaoge in #481
- unionstore: add checkpoint API to support TiDB savepoint feature by @crazycs520 in #490
- Preserve is_retry_request flag for prewrite when retrying with region errors by @ekexium in #513
- client: fix nil dereference when closing conns by @youjiali1995 in #514
- Avoid sending requests to unhealthy leader by @sticnarf in #503
- transaction: update undetermined error log by @jackysp in #531
- [RawKV] support checksum by @haojinming in #519
- client: support requests with source label by @you06 in #506
- fix:move tikv.NewTxnClient to txnk.NewClient by @583373805 in #534
- Add a callback when MemDB grows by @ekexium in #520
- txn: also record get-latest-ts time in commit details by @zyguan in #538
- add replica read adjuster function in KVSnapshot by @glorv in #540
- client: change loglevel of sendBatchRequest() for context cancellation by @dveeden in #542
- Introduce API v2 by @iosmanthus in #494
- util: handle GetLatestTsTime in the methods properly by @zyguan in #543
- Handle more detailed statistics from TiKV by @sticnarf in #536
- *: update google/btree to improve performance by @hawkingrei in #547
- retry: make backoff more reasonable for DataNotReady by @nolouch in #550
- client: change loglevel of
batchRecvLoop fails when receiving, needs to reconnect
by @SeaRise in #551 - add checksum for apiv2 by @haojinming in #549
- Do not format error when response does not include ExecDetailsV2 by @sticnarf in #553
- go.mod: update pd/client by @Defined2014 in #554
- support adding
ExecDetailsV2
to tracing by @zyguan in #559 - Fix that histogram is not inserted into rpcNetLatencyHistCache by @sticnarf in #563
- txnkv: fix a bug that commitTSUpperBoundCheck err not handled by @tiancaiamao in #564
- Drop Go 1.17 support by @sticnarf in #562
- Clear intersecting regions in the cache when inserting a region by @sticnarf in #566
- txn: seperate prewrite and commit in detail information and add clone methods by @cfzjywxk in #567
- *: add getPDClient to rawKV public api by @c4pt0r in #570
- Update README.md by @c4pt0r in #571
- update dependency of integration test by @cfzjywxk in #572
- Support postponed conflict check by @ekexium in #556
- update tidb dependency of integration tests & use go 1.19 by @ekexium in #577
- *: support the kv_flashback_to_version cmd by @JmPotato in #578
- PessimisticLock: Lock the specified key only if the key exists by @TonsnakeLin in #561
- *: introduce the non-retryable error FlashbackInProgress by @JmPotato in #579
- add a flag PreviousPresumeKNE by @ekexium in #581
- feat(region_cache): sync leader store epoch when switchWorkLeaderToPeer by @Ryan-Git in #573
- extend the scope of using lock_only_if_exists by @TonsnakeLin in #582
- Distinguish different types of write conflicts by @ekexium in #583
- Don't let pessimistic txn prewrite in the optimistic way by @ekexium in #584
- Avoid data race at workTiFlashIdx by @sticnarf in #586
- txnkv: export DefaultScanBatchSize variable by @crazycs520 in #588
- *: disable PermitWithoutStream to avoid too many pings by @jackysp in #574
- update comments by @windtalker in #590
- *: Support
kv_prepare_flashback_to_version
cmd by @Defined2014 in #592 - Acquire read lock in LockKeys to avoid data race by @sticnarf in #585
- mocktikv: impl LoadKeyspace and WatchKeyspaces for pd client by @CabinfeverB in #597
- Fix the missing unlock in extractKeyExistsErr by @sticnarf in #603
- region_cache: fix bug when reload tiflash_compute store cache by @guo-shaoge in #598
- Introduce the FlashbackNotPrepared error by @JmPotato in #6...
v2.0.1
What's Changed
- Fix incorrect LockNoWait value
- client: fix the race between connArray.Close() and connArray.Get()
Full Changelog: v2.0.0...v2.0.1
v2.0.0
v2.0.0-rc
v2.0.0-alpha
branch name related changes (#146) Signed-off-by: disksing <i@disksing.com>