Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/chaozh/MIT-6.824
/ functions
Functions
379 in github.com/chaozh/MIT-6.824
⨍
Functions
379
◇
Types & classes
79
↓ 49 callers
Method
join
tell the shardctrler that a group is joining.
src/shardkv/config.go:306
↓ 48 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:500
↓ 40 callers
Method
connect
attach server i to the net.
src/raft/config.go:305
↓ 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
↓ 33 callers
Method
disconnect
detach server i from the net.
src/raft/config.go:328
↓ 32 callers
Function
randstring
(n int)
src/shardkv/config.go:20
↓ 30 callers
Method
Query
(num int)
src/shardctrler/client.go:31
↓ 28 callers
Method
checkOneLeader
check that there's exactly one leader. try a few times in case re-elections are needed.
src/raft/config.go:372
↓ 26 callers
Method
leave
tell the shardctrler that a group is leaving.
src/shardkv/config.go:324
↓ 25 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
↓ 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
↓ 20 callers
Method
AddService
(svc *Service)
src/labrpc/labrpc.go:399
↓ 20 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:552
↓ 19 callers
Method
cleanup
()
src/raft/config.go:294
↓ 19 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:565
↓ 19 callers
Method
makeClient
()
src/shardkv/config.go:118
↓ 19 callers
Function
make_config
(t *testing.T, n int, unreliable bool, snapshot bool)
src/raft/config.go:62
↓ 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:206
↓ 17 callers
Method
Put
(key string, value string)
src/shardkv/client.go:132
↓ 16 callers
Method
AddServer
(servername interface{}, rs *Server)
src/labrpc/labrpc.go:332
↓ 16 callers
Method
Join
(servers map[int][]string)
src/shardctrler/client.go:48
↓ 16 callers
Method
ShutdownGroup
(gi int)
src/shardkv/config.go:197
↓ 16 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:212
↓ 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:59
↓ 15 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 previo
src/raft/config.go:240
↓ 14 callers
Method
Append
(key string, value string)
src/shardkv/client.go:135
↓ 14 callers
Function
check
(cfg *config, t *testing.T, ck *Clerk, key string, value string)
src/kvraft/test_test.go:91
↓ 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:66
↓ 11 callers
Function
MakeNetwork
()
src/labrpc/labrpc.go:140
↓ 11 callers
Function
MakeServer
()
src/labrpc/labrpc.go:393
↓ 11 callers
Function
MakeService
(rcvr interface{})
src/labrpc/labrpc.go:447
↓ 10 callers
Function
check
import "time"
src/shardctrler/test_test.go:12
↓ 9 callers
Method
Decode
(e interface{})
src/labgob/labgob.go:52
↓ 9 callers
Method
StartServer
start i'th server in gi'th group
src/shardkv/config.go:204
↓ 8 callers
Method
Copy
()
src/raft/persister.go:30
↓ 8 callers
Method
Encode
(e interface{})
src/labgob/labgob.go:32
↓ 8 callers
Method
GetState
return currentTerm and whether this server believes it is the leader.
src/raft/raft.go:71
↓ 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
↓ 7 callers
Method
Reliable
(yes bool)
src/labrpc/labrpc.go:171
↓ 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:432
↓ 6 callers
Method
cleanup
()
src/kvraft/config.go:69
↓ 6 callers
Method
crash1
shut down a Raft server but save its persistent state.
src/raft/config.go:105
↓ 6 callers
Function
make_config
(t *testing.T, n int, unreliable bool, maxraftstate int)
src/kvraft/config.go:360
↓ 6 callers
Method
nCommitted
how many servers think a log entry is committed?
src/raft/config.go:433
↓ 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:41
↓ 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 K
src/raft/raft.go:234
↓ 5 callers
Method
RaftStateSize
()
src/raft/persister.go:51
↓ 5 callers
Method
Read
()
src/kvraft/test_test.go:32
↓ 5 callers
Function
checkValue
(value interface{})
src/labgob/labgob.go:68
↓ 5 callers
Function
clone
(orig []byte)
src/raft/persister.go:24
↓ 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:1013
↓ 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:48
↓ 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 w
src/kvraft/client.go:39
↓ 4 callers
Method
bytesTotal
()
src/raft/config.go:362
↓ 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:459
↓ 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 modif
src/shardkv/client.go:68
↓ 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
Method
ReadSnapshot
()
src/raft/persister.go:66
↓ 3 callers
Function
bitsetIndex
(pos uint)
src/porcupine/bitset.go:25
↓ 3 callers
Function
checkEvents
(model Model, history []Event, verbose bool, timeout time.Duration)
src/porcupine/checker.go:350
↓ 3 callers
Function
checkOperations
(model Model, history []Operation, verbose bool, timeout time.Duration)
src/porcupine/checker.go:360
↓ 3 callers
Method
checklogs
check that no server's log is too big.
src/shardkv/config.go:91
↓ 3 callers
Function
fillDefault
(model Model)
src/porcupine/checker.go:250
↓ 3 callers
Function
insertBefore
(n *node, mark *node)
src/porcupine/checker.go:65
↓ 3 callers
Function
key2shard
which shard is a key in? please use this function, and please do not change it.
src/shardkv/client.go:22
↓ 3 callers
Method
op
()
src/kvraft/config.go:406
↓ 3 callers
Method
rpcCount
(server int)
src/raft/config.go:350
↓ 3 callers
Method
setunreliable
(unrel bool)
src/raft/config.go:358
↓ 2 callers
Function
Append
(cfg *config, ck *Clerk, key string, value string, log *OpLog, cli int)
src/kvraft/test_test.go:75
↓ 2 callers
Method
ConnectAll
()
src/shardctrler/config.go:138
↓ 2 callers
Method
ConnectClient
(ck *Clerk, to []int)
src/kvraft/config.go:232
↓ 2 callers
Method
ConnectClientUnlocked
caller should hold cfg.mu
src/shardctrler/config.go:196
↓ 2 callers
Method
ConnectClientUnlocked
caller should hold cfg.mu
src/kvraft/config.go:223
next →
1–100 of 379, ranked by callers