Commit Graph

191 Commits

Author SHA1 Message Date
Wallace 01898542c5
Forward request by store (#223)
Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
2021-07-01 01:35:21 +08:00
Liangliang Gu 630e1513e9
Support metrics with multiple TiSessions with the same port (#220)
Signed-off-by: marsishandsome <marsishandsome@gmail.com>
2021-06-29 15:30:21 +08:00
Liangliang Gu d90237f16c
Refactor RawKVClient CAS API (#213)
Signed-off-by: marsishandsome <marsishandsome@gmail.com>
2021-06-24 11:55:21 +08:00
Xiaoguang Sun fe6617e3c0
Support select replica with rich meta data (#171)
Signed-off-by: Xiaoguang Sun <sunxiaoguang@zhihu.com>
2021-06-23 15:50:21 +08:00
Wallace 550487db9c
fix not stop scheduler (#207)
* fix not stop scheduler

Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>

* address comment

Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
2021-06-23 15:00:47 +08:00
Wallace d29cf0079c
pd-client grpc forward (#203)
* forward pd leader

Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
2021-06-22 18:22:42 +08:00
Wallace 5815678c56
Support grpc forward (#198)
* support grpc forward for tikv client

Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
2021-06-18 18:25:58 +08:00
Andy Lok 8308d796e7
Add CompareAndSet for RawClient and make Get returns Optional (#192)
* Add CompareAndSet for RawClient and make Get returns Optional

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

* Apply suggestions from code review

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

Co-authored-by: Liangliang Gu <marsishandsome@gmail.com>

* Format code

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

* Add putIfAbsent

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

* Rename sth

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

* Remove .vscode

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

* Remove .settings

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

* Delete .classpath

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

* Fix deadloop

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

* Enable TTL and CAS test

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

* Fix test

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

* rebase #202

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

Co-authored-by: Liangliang Gu <marsishandsome@gmail.com>
Co-authored-by: ti-srebot <66930949+ti-srebot@users.noreply.github.com>
2021-06-18 14:00:05 +08:00
birdstorm c6d7f0478c
fix scan exception when the start key is empty (lower_bound) (#199)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-06-17 15:56:20 +08:00
Wallace 4a401776d1
refactor kverrorhandler (#196)
* refactor kverrorhandler

Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
2021-06-16 22:15:49 +08:00
Iosmanthus Teng 52f8c25d8b
rawclient: add batch scan keys (#191)
Signed-off-by: iosmanthus <myosmanthustree@gmail.com>
2021-06-09 15:47:58 +08:00
birdstorm f76a267f5b
Fix pd retry not recovered for 60s (#182)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-06-08 14:31:51 +08:00
Chase Zhang d469a2a10c
Add CDCClient to client-java with a few tiny changes for TiFlink (#174) 2021-06-07 10:04:35 +08:00
birdstorm a3ac697de1
add request retry number metrics for client (#183)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-06-04 15:41:06 +08:00
birdstorm 30e1e87e0d
fix concurrent backoffer (#172)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-05-27 16:06:40 +08:00
birdstorm 82d6a020df
invalidate all region cache on store when store id not found (#170) (#173)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-05-27 16:06:23 +08:00
zhoney 4e8f5f8369
return wrapped iterator for scan(RawKVClient) (#169)
Signed-off-by: zhangyi51 <zhangyi51@baidu.com>
2021-05-13 12:43:10 +08:00
Qishang Zhong 5265d3fd7b
Create a daemon thread pool for etcd client & Add name format for ExecutorService (#167)
Signed-off-by: Qishang Zhong <zhongqishang@gmail.com>
2021-04-25 10:41:16 +08:00
tison 45f5b91a67
Remove unused files (#165) 2021-04-19 14:40:46 +08:00
Liangliang Gu 8d6d663df8
fix oom cause missing data bug (#163)
Signed-off-by: marsishandsome <marsishandsome@gmail.com>
2021-04-12 10:28:20 +08:00
Peter Levart 19787278c1
Allow building on JDK9+ by getting rid of DirectByteBuffer dependency (#155)
Signed-off-by: Peter Levart <peter.levart@gmail.com>
2021-04-07 12:54:52 +08:00
birdstorm 61d15408f4
remove list copy (#160)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-03-31 16:14:17 +08:00
Liangliang Gu 6f20129c9c
add replica selector (#151)
Signed-off-by: marsishandsome <marsishandsome@gmail.com>
2021-03-26 15:55:53 +08:00
Liangliang Gu e84f2f819e
refactor follower read (#126)
Signed-off-by: marsishandsome <marsishandsome@gmail.com>
2021-03-26 11:45:51 +08:00
birdstorm f24dce7a14
Add test batch put strategy (#150)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-03-25 17:39:31 +08:00
Wallace dde59a38f8
Fix putIfAbsent API name (#149)
Signed-off-by: Little-Wallace <bupt2013211450@gmail.com>
2021-03-25 17:04:12 +08:00
birdstorm 762153a550
Add Network Mapping (#143)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-03-23 17:42:04 +08:00
birdstorm eecae1663e
Fix batch retry hanging when tikv is down (#145)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-03-23 17:21:01 +08:00
birdstorm 7cedfca241
fix update leader (#144)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-03-22 17:49:14 +08:00
birdstorm bee21d4f66
Fix store not match (#141)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-03-17 20:12:11 +08:00
birdstorm c9507c2fa7
Add atomic api support (#140)
* add atomic api support

Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-03-15 19:58:25 +08:00
birdstorm 56331e2f98
Optimize and Fix minor bugs on master (#139) 2021-03-11 21:25:40 +08:00
birdstorm af7326c96c
revert small lock optimization (#136)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-02-27 19:10:26 +08:00
birdstorm ce1a95780c
Fix batch put StackOverflow (#134)
* fix batch put stack overflow

Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-02-27 18:37:03 +08:00
birdstorm 1a7d5805cc
Fix cache missing because of recreation of RegionManager (#131)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-02-23 14:23:19 +08:00
birdstorm 45219438f9
Add TTL support (#129)
* add ttl support

Signed-off-by: birdstorm <samuelwyf@hotmail.com>

* fix time unit

Signed-off-by: birdstorm <samuelwyf@hotmail.com>

* ignore test temporary

Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-02-21 14:31:49 +09:00
birdstorm 10d8efbbc4
update kvproto version (#128)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-02-20 15:36:54 +08:00
birdstorm 7dfa1df52c
modify rawkv backoff time (#127)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-02-20 14:20:23 +08:00
birdstorm c84058e53a
retry when error is raft proposal dropped (#124)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-02-20 14:13:11 +08:00
birdstorm 7bef552b8e
Add DeleteRange API (#121)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-02-20 14:09:59 +08:00
Liangliang Gu 0d4b27bcd3
update function getNextFollower (#125)
Signed-off-by: marsishandsome <marsishandsome@gmail.com>
2021-02-18 16:35:40 +08:00
birdstorm ab9ccfb6e2
add scan prefix API (#122)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-02-18 13:57:42 +08:00
birdstorm 25e0ab3b14
Add Batch APIs (#118) 2021-02-01 11:38:12 +08:00
Liangliang Gu f58a530948
do not use TiSession.getInstance (#117) 2021-01-27 11:23:32 +08:00
birdstorm 66fd0690a9
modify tisession api document (#116)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-01-21 11:11:44 +08:00
birdstorm 76b731f8be
add raw empty scan test (#115)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-01-19 14:15:10 +08:00
birdstorm ad8a392645
fix getRegionByKey when using raw mode (#114)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-01-16 09:49:41 +08:00
birdstorm 4fb17db417
add raw scan api without limit (#113)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-01-15 13:34:03 +08:00
birdstorm 80eecbd348
fix raw batch put (#84)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-01-14 18:01:15 +08:00
birdstorm 4b07ecf0ac
fix shaded jar (#112)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-01-14 13:16:59 +08:00
birdstorm 15ed11dbd5
fix date time type decoding in row (#111)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-01-12 10:39:32 +08:00
birdstorm 30806814d2
fix empty enum type (#110)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-01-12 10:38:48 +08:00
birdstorm d96291706e
fix zero in date parsing (#108)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-01-11 11:52:11 +08:00
birdstorm 07e9040130
fix enum index out of range error (#106)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2021-01-11 10:46:30 +08:00
birdstorm a0229f56aa
fix key not in region (#104)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2020-12-23 11:20:41 +08:00
birdstorm 0d15c5269c
Support follower read (#96) 2020-11-25 08:37:11 +08:00
birdstorm 1d8e58a9d0
Fix incorrect date type value when timezone is set (#97)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2020-10-30 14:18:45 +08:00
birdstorm df03a622e0
Reform java client to combine with TiSpark's java client (#91) 2020-10-21 19:10:18 +08:00
Mike 26121ee224
RawGet changes the while (true) mechanism to a retry limit. (#90)
Signed-off-by: mikechengwei <842725815@qq.com>
2020-09-11 20:08:56 +08:00
birdstorm 41aeed2679
Reform java client (#83) 2020-09-07 14:13:09 +08:00
birdstorm 9a0b8681db
Add retry limit for rawPut (#81)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2020-05-13 13:55:07 +08:00
birdstorm 2ca05e9256
update raw scan api (#78)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2020-05-12 16:00:11 +08:00
birdstorm 24ed19b582 Fix ScanIterator may fail when an error encounters (#63) 2019-06-14 17:41:27 +08:00
birdstorm daca5d23f2 Add gradle build documents (#59) 2019-04-10 14:17:05 +08:00
birdstorm a67f45cf53
Fix ipv6 address (#51) 2019-03-05 16:31:40 +08:00
birdstorm c4b32df541
Fix gradle build (#50) 2019-02-27 14:57:55 +08:00
birdstorm 1d66f4effa
Refine region refresh logic in RegionStoreClient.get (#27)
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2019-01-21 18:37:55 +08:00
chenjing ebe6f6bece Fix gradle build bugs and remove hadoop dependencies (#26)
Signed-off-by: jackycchen <120505816@qq.com>
2019-01-21 17:45:23 +08:00
birdstorm 491efa9fbb
fix #21 (#23) 2019-01-07 15:30:41 +08:00
Soup 2f0d9997d1 Refactory class model (#18) 2019-01-04 16:45:35 +08:00
birdstorm 24719494ea
Fix data race in context (#22) 2018-12-28 10:51:07 +08:00
birdstorm 45d8f78727
Fix several client tests (#19) 2018-12-25 17:03:59 +08:00
birdstorm ce2adbe2c9 fix multi-thread on backOffer
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2018-12-21 16:10:02 +08:00
birdstorm f964343f13 apply comments
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2018-12-19 21:19:43 +08:00
birdstorm 6aea6bbf2b tiny modification
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2018-12-19 17:57:18 +08:00
birdstorm 96a28811db modify test
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2018-12-19 17:08:34 +08:00
birdstorm 4aa8046b9f add comments
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2018-12-19 16:40:23 +08:00
birdstorm 106a7c3b3f add multi-thread for batchPut
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2018-12-19 16:22:32 +08:00
birdstorm 2a50639074
Extend for YCSB (#14) 2018-12-19 13:20:01 +08:00
birdstorm 7ff70610f9
Separate raw client and txn client (#13) 2018-12-12 20:24:12 +08:00
birdstorm def2e5767f
add other codec (#12) 2018-12-11 19:43:23 +08:00
birdstorm a93e507126
Fix pd response is null (#10) 2018-12-08 19:08:26 +08:00
birdstorm eeced35f2c
add kv mode KV/RAW (#9) 2018-12-08 16:20:39 +08:00
birdstorm b11d513192
add raw-batch-put api (#8) 2018-12-08 14:02:40 +08:00
birdstorm 09865bb166 fix LockResolverTest
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2018-12-07 14:02:58 +08:00
birdstorm 232b7018dd add logs for storeNotMatch
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2018-12-04 18:18:39 +08:00
birdstorm 2635655b75 format
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2018-11-30 15:55:29 +08:00
birdstorm efe747ff6b delete most unused apis
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2018-11-30 15:25:17 +08:00
birdstorm 6306440218 fix error in region decode when using rawKVClient API
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2018-11-28 16:02:31 +08:00
birdstorm 20cd53c476 rename java packages
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2018-11-21 18:03:04 +08:00
birdstorm fdf6ee3b06 init
Signed-off-by: birdstorm <samuelwyf@hotmail.com>
2018-11-15 17:11:42 +08:00