Commit Graph

187 Commits

Author SHA1 Message Date
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
YangKeao
fc36c301fb
refine the misleading comment in test (#216)
Signed-off-by: Yang Keao <keao.yang@yahoo.com>
2020-08-11 15:44:44 +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
affe
e55ab1a6d0
docs(project1 standaloneKV) fix a typo: warps should be wraps (#214) 2020-08-01 01:40:56 +08:00
NingLin-P
2cf41a8144
fix overflow (#213)
Signed-off-by: linning <linningde25@gmail.com>
2020-07-29 12:57:40 +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
huahang
a7d2aa66d5
Add vendor folder to .gitignore. (#212)
Signed-off-by: Hans <hans@dkmt.io>
2020-07-27 15:16:55 +08:00
Connor1996
284b736572 tiny change for softstate comment
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-07-22 11:01:27 +08:00
sunznx
2792ccd03e
fix typo (#211) 2020-07-20 14:24:51 +08:00
miamiaoxyz
0a3cb4d128
fix doc timestamp bug (#210)
According to Percolator paper page 5, I found that `default` CF should append to the store with *start* timestamp  in `KvPrewrite` ,and  `write` CF with *commit* timestamp in `KvCommit`, which should be swapped.

Co-authored-by: Nick Cameron <nrc@ncameron.org>
2020-06-29 09:13:25 +12: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
Lin ZiHao
109bf90f4d
TestHandleHeartbeat2AA add test case (#193)
* TestHeartbeatUpdateCommit2AB

Co-authored-by: NingLin-P <linning@pingcap.com>
2020-06-11 11:48:19 +08:00
Connor1996
18d6e1d8e3 update eraftpb.pb.go
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-06-09 13:54:52 +08:00
Potato
6a1e5d76de
fix wrong proto path in project1-StandaloneKV.md (#202) 2020-06-09 13:41:10 +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
Connor1996
bc06cdf987 fix project3c test filter
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-05-26 11:16:41 +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
klaus
b4a7a561f8
chore: fix typo (#180) 2020-05-22 02:55:09 +08:00
loxp
e620983e76
typo: AppendEntries (#178) 2020-05-21 17:39:10 +08:00
xiongjiwei
1eed5cfc88
set correct path for project3b (#175)
* project 3B in ./kv/test_raftstore
2020-05-20 15:00:00 +08:00
Connor1996
6f7280b90b fix invalid tinysql revision
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-05-18 17:09:48 +08:00
Lin ZiHao
e01d729bd4
fix #171 let newRaft take care of peers and Prs (#172)
* let newRaft take care of peers and Prs
2020-05-14 13:24:12 +08:00
Palash Nigam
38dfb05303
README.md: fix typo (#169) 2020-05-12 16:30:36 +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
liyiheng
a5c29fcf07
Doc fix: Update link of multi-raft in reading list (#162)
* Doc fix: Update link of multi-raft in reading list

* Doc fix: Format links in reading list
2020-05-07 14:53:10 +08:00
Lin ZiHao
189b95819b
update raft_test TestLeaderElection2AA (#159)
* update raft_test TestLeaderElection2AA

change expected state to StateCandidate. since implementation of prevote is not required
2020-05-07 14:47:10 +08:00
Lin ZiHao
4adae7912e
update raft/log.go, fix type (#157) 2020-05-04 22:12:30 +08:00
Connor
1df74d600c add log level
Signed-off-by: Connor <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Connor1996
b601434045 add reading list
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Connor
e7255dbd7b Update README.md 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
feca690a6a adjust doc
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Connor1996
174028fc8a remove useless hints
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Connor1996
d06e805544 add missing term
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Connor1996
32aed2fe2b some tiny change for project3 doc
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
YangKeao
75a021284d Add doc for project3 part C (#153) 2020-04-30 15:31:26 +08:00
Connor1996
3b9800441e add doc for project1
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
NingLin-P
a22b69e90a add part2 A and B course material (#151)
* add part2 A and B course material

Signed-off-by: linning <linningde25@gmail.com>
2020-04-30 15:31:26 +08:00
Nick Cameron
95099c5595 Add project 4 course material (#152)
Signed-off-by: Nick Cameron <nrc@ncameron.org>
2020-04-30 15:31:26 +08:00
Connor1996
2f148e51aa fix readme statement
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Connor1996
51f3830cee fix readme format
Signed-off-by: Connor1996 <zbk602423539@gmail.com>
2020-04-30 15:31:26 +08:00
Connor1996
b8374cb7b6 upload part of course material
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