Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Vanilla-Beauty/MIT6.5840
/ functions
Functions
443 in github.com/Vanilla-Beauty/MIT6.5840
⨍
Functions
443
◇
Types & classes
93
↓ 63 callers
Method
one
do a complete agreement. it might choose the wrong leader initially, and have to re-submit after giving up. entirely gives up after about 10 seconds.
src/raft/config.go:563
↓ 49 callers
Method
join
tell the shardctrler that a group is joining.
src/shardkv/config.go:306
↓ 43 callers
Method
connect
attach server i to the net.
src/raft/config.go:361
↓ 40 callers
Function
DPrintf
(format string, a ...interface{})
src/raft/util.go:11
↓ 38 callers
Method
disconnect
detach server i from the net.
src/raft/config.go:384
↓ 37 callers
Method
Enable
enable/disable a ClientEnd.
src/labrpc/labrpc.go:356
↓ 34 callers
Function
check
(t *testing.T, ck *Clerk, key string, value string)
src/shardkv/test_test.go:16
↓ 32 callers
Method
checkOneLeader
check that one of the connected servers thinks it is the leader, and that no other connected server thinks otherwise. try a few times in case re-elec
src/raft/config.go:431
↓ 32 callers
Function
randstring
(n int)
src/shardkv/config.go:20
↓ 30 callers
Method
Query
(num int)
src/shardctrler/client.go:47
↓ 29 callers
Method
Call
send an RPC, wait for the reply. the return value indicates success; false means that no reply was received from the server.
src/labrpc/labrpc.go:84
↓ 27 callers
Function
SDPrintf
(format string, a ...interface{})
src/shardctrler/util.go:21
↓ 26 callers
Method
leave
tell the shardctrler that a group is leaving.
src/shardkv/config.go:324
↓ 24 callers
Method
begin
start a Test. print the Test message. e.g. cfg.begin("Test (2B): RPC counts aren't too high")
src/raft/config.go:617
↓ 23 callers
Method
Connect
connect a ClientEnd to a server. a ClientEnd can only be connected once in its lifetime.
src/labrpc/labrpc.go:348
↓ 23 callers
Method
MakeEnd
create a client end-point. start the thread that listens and delivers.
src/labrpc/labrpc.go:313
↓ 23 callers
Method
cleanup
()
src/raft/config.go:349
↓ 23 callers
Method
end
end a Test -- the fact that we got here means there was no failure. print the Passed message, and some performance numbers.
src/raft/config.go:630
↓ 23 callers
Function
make_config
(t *testing.T, n int, unreliable bool, snapshot bool)
src/raft/config.go:69
↓ 20 callers
Method
AddService
(svc *Service)
src/labrpc/labrpc.go:397
↓ 20 callers
Function
ServerLog
(format string, a ...interface{})
src/kvraft/server.go:28
↓ 20 callers
Method
Start
the service using Raft (e.g. a k/v server) wants to start agreement on the next command to be appended to Raft's log. if this server isn't the leader,
src/raft/raft.go:276
↓ 19 callers
Method
Join
(servers map[int][]string)
src/shardctrler/client.go:66
↓ 19 callers
Method
makeClient
()
src/shardkv/config.go:118
↓ 18 callers
Method
Decode
(e interface{})
src/labgob/labgob.go:52
↓ 18 callers
Method
start1
start or re-start a Raft. if one already exists, "kill" it first. allocate new outgoing port file names, and a new state persister, to isolate previou
src/raft/config.go:278
↓ 17 callers
Method
Encode
(e interface{})
src/labgob/labgob.go:32
↓ 17 callers
Function
GenericTest
Basic test is as follows: one or more clients submitting Append/Get operations to set of servers for some period of time. After the period is over, t
src/kvraft/test_test.go:212
↓ 17 callers
Method
Put
(key string, value string)
src/shardkv/client.go:124
↓ 16 callers
Method
AddServer
(servername interface{}, rs *Server)
src/labrpc/labrpc.go:332
↓ 16 callers
Method
RealLogIdx
(vIdx int)
src/raft/raft.go:121
↓ 16 callers
Method
ShutdownGroup
(gi int)
src/shardkv/config.go:197
↓ 15 callers
Method
Cleanup
()
src/labrpc/labrpc.go:167
↓ 15 callers
Function
Put
(cfg *config, ck *Clerk, key string, value string, log *OpLog, cli int)
src/kvraft/test_test.go:65
↓ 14 callers
Method
Append
(key string, value string)
src/shardkv/client.go:127
↓ 14 callers
Function
check
(cfg *config, t *testing.T, ck *Clerk, key string, value string)
src/kvraft/test_test.go:97
↓ 13 callers
Method
VirtualLogIdx
(rIdx int)
src/raft/raft.go:126
↓ 13 callers
Method
cleanup
()
src/shardkv/config.go:79
↓ 13 callers
Function
make_config
(t *testing.T, n int, unreliable bool, maxraftstate int)
src/shardkv/config.go:338
↓ 12 callers
Method
StartGroup
(gi int)
src/shardkv/config.go:264
↓ 12 callers
Method
makeClient
Create a clerk with clerk specific server names. Give it connections to all of the servers, but for now enable only connections to servers in to[].
src/kvraft/config.go:191
↓ 11 callers
Method
All
()
src/kvraft/config.go:157
↓ 11 callers
Method
Leave
(gids []int)
src/shardctrler/client.go:85
↓ 11 callers
Function
MakeNetwork
()
src/labrpc/labrpc.go:140
↓ 11 callers
Function
MakeServer
()
src/labrpc/labrpc.go:391
↓ 11 callers
Function
MakeService
(rcvr interface{})
src/labrpc/labrpc.go:445
↓ 11 callers
Method
persist
save Raft's persistent state to stable storage, where it can later be retrieved after a crash and restart. see paper's Figure 2 for a description of w
src/raft/raft.go:152
↓ 10 callers
Function
DPrintf
(format string, a ...interface{})
src/kvraft/server.go:21
↓ 10 callers
Function
check
import "time"
src/shardctrler/test_test.go:13
↓ 9 callers
Method
StartServer
start i'th server in gi'th group
src/shardkv/config.go:204
↓ 9 callers
Method
crash1
shut down a Raft server but save its persistent state.
src/raft/config.go:113
↓ 8 callers
Method
Copy
()
src/raft/persister.go:30
↓ 8 callers
Method
GetState
return currentTerm and whether this server believes it is the leader.
src/raft/raft.go:133
↓ 8 callers
Method
begin
start a Test. print the Test message. e.g. cfg.begin("Test (2B): RPC counts aren't too high")
src/kvraft/config.go:399
↓ 8 callers
Method
end
end a Test -- the fact that we got here means there was no failure. print the Passed message, and some performance numbers.
src/kvraft/config.go:414
↓ 8 callers
Method
nCommitted
how many servers think a log entry is committed?
src/raft/config.go:496
↓ 7 callers
Function
ControlerLog
(format string, a ...interface{})
src/shardctrler/util.go:28
↓ 7 callers
Method
Reliable
(yes bool)
src/labrpc/labrpc.go:171
↓ 7 callers
Method
ResetVoteTimer
()
src/raft/raft.go:112
↓ 7 callers
Method
ShutdownServer
Shutdown i'th server of gi'th group, by isolating it
src/shardkv/config.go:156
↓ 7 callers
Method
StartServer
If restart servers, first call ShutdownServer
src/kvraft/config.go:287
↓ 6 callers
Method
All
()
src/shardctrler/config.go:130
↓ 6 callers
Method
GetCount
()
src/labrpc/labrpc.go:430
↓ 6 callers
Method
RaftStateSize
()
src/raft/persister.go:45
↓ 6 callers
Method
ReadSnapshot
()
src/raft/persister.go:60
↓ 6 callers
Method
cleanup
()
src/kvraft/config.go:69
↓ 6 callers
Function
make_config
(t *testing.T, n int, unreliable bool, maxraftstate int)
src/kvraft/config.go:360
↓ 5 callers
Method
Append
(op porcupine.Operation)
src/kvraft/test_test.go:26
↓ 5 callers
Method
DeleteServer
(servername interface{})
src/labrpc/labrpc.go:339
↓ 5 callers
Function
Get
get/put/putappend that keep counts
src/kvraft/test_test.go:47
↓ 5 callers
Method
Kill
the tester doesn't halt goroutines created by Raft after each test, but it does call the Kill() method. your code can use killed() to check whether Ki
src/raft/raft.go:254
↓ 5 callers
Method
LogInfoDBExecute
(opArgs *Op, err Err, res string)
src/kvraft/server.go:103
↓ 5 callers
Method
Read
()
src/kvraft/test_test.go:32
↓ 5 callers
Function
checkValue
(value interface{})
src/labgob/labgob.go:68
↓ 5 callers
Method
ctrlername
controler server name for labrpc.
src/shardkv/config.go:108
↓ 5 callers
Method
partition
Sets up 2 partitions with connectivity between servers in each partition.
src/kvraft/config.go:174
↓ 5 callers
Function
snapcommon
(t *testing.T, name string, disconnect bool, reliable bool, crash bool)
src/raft/test_test.go:1102
↓ 4 callers
Function
CallForReportStatus
(succesType MsgType, taskID int)
src/mr/worker.go:174
↓ 4 callers
Method
ConnectAll
()
src/kvraft/config.go:165
↓ 4 callers
Method
Done
main/mrcoordinator.go calls Done() periodically to find out if the entire job has finished.
src/mr/coordinator.go:233
↓ 4 callers
Method
Get
fetch the current value for a key. returns "" if the key does not exist. keeps trying forever in the face of all other errors. you can send an RPC wi
src/kvraft/client.go:53
↓ 4 callers
Method
GetSeq
()
src/shardctrler/client.go:33
↓ 4 callers
Method
HandleOp
(opArgs *Op)
src/shardctrler/server.go:88
↓ 4 callers
Method
bytesTotal
()
src/raft/config.go:418
↓ 4 callers
Function
clone
(orig []byte)
src/raft/persister.go:24
↓ 4 callers
Method
connectUnlocked
attach server i to servers listed in to caller must hold cfg.mu
src/shardctrler/config.go:80
↓ 4 callers
Method
connectUnlocked
attach server i to servers listed in to caller must hold cfg.mu
src/kvraft/config.go:107
↓ 4 callers
Method
disconnectUnlocked
detach server i from the servers listed in from caller must hold cfg.mu
src/shardctrler/config.go:104
↓ 4 callers
Method
disconnectUnlocked
detach server i from the servers listed in from caller must hold cfg.mu
src/kvraft/config.go:131
↓ 4 callers
Method
makeClient
Create a clerk with clerk specific server names. Give it connections to all of the servers, but for now enable only connections to servers in to[].
src/shardctrler/config.go:164
↓ 4 callers
Method
servername
shard server name for labrpc. i'th server of group gid.
src/shardkv/config.go:114
↓ 4 callers
Method
wait
wait for at least n servers to commit. but don't wait forever.
src/raft/config.go:522
↓ 3 callers
Method
CheckAppendConfig
(newConfig Config)
src/shardctrler/server.go:58
↓ 3 callers
Method
Get
fetch the current value for a key. returns "" if the key does not exist. keeps trying forever in the face of all other errors. You will have to modify
src/shardkv/client.go:62
↓ 3 callers
Method
GetTotalBytes
()
src/labrpc/labrpc.go:377
↓ 3 callers
Method
Leader
()
src/shardctrler/config.go:299
↓ 3 callers
Method
LogSize
Maximum log size across all servers
src/kvraft/config.go:82
↓ 3 callers
Function
NewDecoder
(r io.Reader)
src/labgob/labgob.go:46
↓ 3 callers
Function
NewEncoder
(w io.Writer)
src/labgob/labgob.go:26
↓ 3 callers
Function
bitsetIndex
(pos uint)
src/porcupine/bitset.go:25
next →
1–100 of 443, ranked by callers