Commit Graph

44 Commits

Author SHA1 Message Date
Daobing Zhu
077953e2d7
Fix an issue to support unreliable in GenericTest (#265)
* fix an issue to support unreliable in GenericTest
2021-09-01 17:39:01 +08:00
pupillord
bda1e7b85b
Server: Extract raw api to be implemented in Project1 into raw_api.go (#285)
* Extract raw api to be implemented in Project1 into raw_api.go

* Run go fmt to apply automatic formatter and delete redundant comments

* Add comments and hints to each function

Co-authored-by: tison <wander4096@gmail.com>
2021-08-25 17:24:05 +08:00
mmyj
25dec1a21f
fixing spelling mistakes (#254) 2021-02-23 20:20:22 +08:00
Rapiz
951f0b3baf
Remove the unused argument in ScheduleCompactLog (#240) 2021-01-27 11:32:07 +08:00
YangKian
59265ae04d
fix wrong setting in handleStaleMsg function (#235) 2021-01-20 14:51:02 +08:00
何卓然
87f6ce88e8
spell check using grammarly (#229) 2021-01-04 10:25:36 +08:00
何卓然
5e493b7bb9
fix #225 (#227)
Co-authored-by: NingLin-P <linningde25@gmail.com>
2020-12-30 13:24:03 +08:00
toyohito murooka
9c3a38a059
close iterator (#221)
fix test code.
refter to https://github.com/pingcap-incubator/tinykv/issues/167
2020-10-09 14:05:17 +08:00
Binacs
6998f4c47a
[kv/util/engine_util] remove dependence on config, making the code more concise and efficient (#215) 2020-08-04 14:00:43 +08:00
Connor1996
abaa565b18 fix concurrent read and write on map
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-07-27 15:30:27 +08:00
xiongjiwei
cb91131143
return nil when genearte snapshot failed (#206)
Co-authored-by: Connor <zbk602423539@gmail.com>
2020-06-28 15:18:49 +08:00
Lin ZiHao
3513f5d1b4
MustHavePeer and MustNonePeer should panic after timeout (#207) 2020-06-11 15:50:06 +08:00
xiongjiwei
6f95cf0df4
bug fix: may cause redundant change peer request (#196)
* bug fix: may cause redundant change peer request

Co-authored-by: Connor <zbk602423539@gmail.com>
2020-06-08 13:49:28 +08:00
sdjdd
d13ccb8785
test(project1): call StandAloneStorage.Start before test code run (#197)
close #195
2020-06-02 17:20:25 +08:00
xiongjiwei
c7fa725b05
Fixes #177 (#181)
* clone region meta before send to avoid unexpected variable change
2020-05-29 10:00:52 +08:00
xiongjiwei
16b8058220
close file and refactor function (#185)
* close file
2020-05-28 13:04:18 +08:00
Lin ZiHao
b6d7c442e3
raftState and applyState change to pointer (#179)
Co-authored-by: Connor <zbk602423539@gmail.com>
2020-05-22 10:54:54 +08:00
xiongjiwei
edb12af93f
fix confusing test data (#168)
* change confusing test data

* fix word spell
2020-05-11 17:19:26 +08:00
FK2469
08a4067af7
Add missing test data for server_test TestRawDelete1 (#163) 2020-05-07 23:02:22 +08:00
Connor
1df74d600c add log level
Signed-off-by: Connor <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Connor
dd377dedaa Add support of coprocessor (#155)
* add coprocessor support

Signed-off-by: Connor1996 <zbk602423539@gmail.com>

Co-authored-by: Yiding Cui <winoros@gmail.com>
2020-04-30 15:31:26 +08:00
Connor1996
ab9b6a8eae add scanner framework
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Connor1996
2dad6f81cb tiny change for comment
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Connor1996
c303272f5d add snapshot data unmarshal
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Connor1996
55c6151c9b rename batchsystem to raftstore
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Connor1996
5691c2c3bc fix region task comment
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Rich
15838152aa fix invalid order of expected and actual in kv/server/server_test.go (#141)
* fix invalid order of expected and actual in tests

Co-authored-by: Connor <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Connor
b5316ae4d5 change some comments
Signed-off-by: Connor <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Connor1996
300323f5fb init applystate
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Nick Cameron
9dc51167e8 Address issues with KeyError and MemStorage (#144)
* Implement `error` for `KeyError`

closes #134

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

* Check for unclosed iterators in memStorage

cc #110

Signed-off-by: Nick Cameron <nrc@ncameron.org>
2020-04-30 15:31:26 +08:00
Connor
bb9739ae6e try to stable tests (#142)
* try to stable tests

Signed-off-by: Connor <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Connor
84e464263b Fix region error (#139)
* fix key not found and close iter

Signed-off-by: Connor1996 <zbk602423539@gmail.com>

* fix region error

Signed-off-by: Connor1996 <zbk602423539@gmail.com>

Co-authored-by: Nick Cameron <nrc@ncameron.org>
2020-04-30 15:31:26 +08:00
Connor1996
73f60164cb fix transaction test build
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
tiddar
ca5a7773ac fix AllLocksForTxn (#140)
Co-authored-by: tiddar <zhangweichen@songguo7.com>
2020-04-30 15:31:26 +08:00
Nick Cameron
db46fe7169 Remove a dead function
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2020-04-30 15:31:26 +08:00
Rich
dcc172a122 reuse GetCFFromTxn (#136)
Co-authored-by: Connor <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Rich
ef92f265f3 Add DeleteCF for single DELETE operation (#135) 2020-04-30 15:31:26 +08:00
LittleDriver
096240d32f add the Value method for Modify type (#133) 2020-04-30 15:31:26 +08:00
Connor
8aa0fa7768 fix key not found and close iter (#132)
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Connor
b46700aa49 add option and fix raft client (#131)
* add option and fix raft client

Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Connor1996
a779cddddc fix build
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
linning
14cf2d23bf add comment for peer storage
Signed-off-by: linning <linningde25@gmail.com>
2020-04-30 15:31:26 +08:00
NingLin-P
f24d6eb488 merge master
Signed-off-by: linning <linningde25@gmail.com>
2020-04-30 15:31:26 +08:00
Connor
5e089a2cd1 init course framework
Signed-off-by: Connor <zbk602423539@gmail.com>
Co-authored-by: Nick Cameron <nrc@ncameron.org>
Co-authored-by: linning <linningde25@gmail.com>
Co-authored-by: YangKeao <keao.yang@yahoo.com>
Co-authored-by: andylokandy <andylokandy@hotmail.com>
Co-authored-by: Iosmanthus Teng <myosmanthustree@gmail.com>
2020-04-30 15:25:07 +08:00