Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/WenbinZhu/mit-6.824-labs
/ functions
Functions
386 in github.com/WenbinZhu/mit-6.824-labs
⨍
Functions
386
◇
Types & classes
90
↓ 49 callers
Method
join
tell the shardmaster that a group is joining.
src/shardkv/config.go:303
↓ 42 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:430
↓ 37 callers
Method
Enable
enable/disable a ClientEnd.
src/labrpc/labrpc.go:354
↓ 35 callers
Function
check
(t *testing.T, ck *Clerk, key string, value string)
src/shardkv/test_test.go:16
↓ 35 callers
Method
connect
attach server i to the net.
src/raft/config.go:235
↓ 32 callers
Function
randstring
(n int)
src/shardkv/config.go:20
↓ 29 callers
Method
disconnect
detach server i from the net.
src/raft/config.go:258
↓ 28 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
↓ 28 callers
Method
Query
(num int)
src/shardmaster/client.go:31
↓ 26 callers
Method
leave
tell the shardmaster that a group is leaving.
src/shardkv/config.go:321
↓ 23 callers
Method
Connect
connect a ClientEnd to a server. a ClientEnd can only be connected once in its lifetime.
src/labrpc/labrpc.go:346
↓ 23 callers
Method
MakeEnd
create a client end-point. start the thread that listens and delivers.
src/labrpc/labrpc.go:311
↓ 22 callers
Method
checkOneLeader
check that there's exactly one leader. try a few times in case re-elections are needed.
src/raft/config.go:302
↓ 20 callers
Method
AddService
(svc *Service)
src/labrpc/labrpc.go:397
↓ 19 callers
Method
makeClient
()
src/shardkv/config.go:115
↓ 18 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:482
↓ 17 callers
Method
Put
(key string, value string)
src/shardkv/client.go:132
↓ 17 callers
Method
cleanup
()
src/raft/config.go:224
↓ 17 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:495
↓ 17 callers
Function
make_config
(t *testing.T, n int, unreliable bool)
src/raft/config.go:60
↓ 16 callers
Method
AddServer
(servername interface{}, rs *Server)
src/labrpc/labrpc.go:330
↓ 16 callers
Method
Join
(servers map[int][]string)
src/shardmaster/client.go:48
↓ 16 callers
Method
ShutdownGroup
(gi int)
src/shardkv/config.go:194
↓ 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:561
↓ 15 callers
Method
Cleanup
()
src/labrpc/labrpc.go:165
↓ 15 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:154
↓ 15 callers
Function
Put
(cfg *config, ck *Clerk, key string, value string)
src/kvraft/test_test.go:29
↓ 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:39
↓ 14 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:136
↓ 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:335
↓ 12 callers
Method
Decode
(e interface{})
src/labgob/labgob.go:52
↓ 12 callers
Method
StartGroup
(gi int)
src/shardkv/config.go:261
↓ 12 callers
Function
checkError
(err error, format string, v ...interface{})
src/mr/worker.go:216
↓ 11 callers
Method
Encode
(e interface{})
src/labgob/labgob.go:32
↓ 11 callers
Method
Leave
(gids []int)
src/shardmaster/client.go:66
↓ 11 callers
Function
MakeNetwork
()
src/labrpc/labrpc.go:138
↓ 11 callers
Function
MakeServer
()
src/labrpc/labrpc.go:391
↓ 11 callers
Function
MakeService
(rcvr interface{})
src/labrpc/labrpc.go:445
↓ 11 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
↓ 10 callers
Method
All
()
src/kvraft/config.go:157
↓ 10 callers
Function
check
(t *testing.T, groups []int, ck *Clerk)
src/shardmaster/test_test.go:11
↓ 9 callers
Method
StartServer
start i'th server in gi'th group
src/shardkv/config.go:201
↓ 9 callers
Method
getLastIndex
get the index of the last log entry. lock must be held before calling this.
src/raft/raft.go:194
↓ 8 callers
Method
Copy
()
src/raft/persister.go:24
↓ 8 callers
Method
GetState
return currentTerm and whether this server believes it is the leader.
src/raft/raft.go:101
↓ 8 callers
Method
StartServer
If restart servers, first call ShutdownServer
src/kvraft/config.go:287
↓ 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:169
↓ 7 callers
Method
ShutdownServer
Shutdown i'th server of gi'th group, by isolating it
src/shardkv/config.go:153
↓ 6 callers
Method
All
()
src/shardmaster/config.go:130
↓ 6 callers
Method
ConnectAll
()
src/kvraft/config.go:165
↓ 6 callers
Function
Get
get/put/putappend that keep counts
src/kvraft/test_test.go:23
↓ 6 callers
Method
GetCount
()
src/labrpc/labrpc.go:430
↓ 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
↓ 6 callers
Method
nCommitted
how many servers think a log entry is committed?
src/raft/config.go:363
↓ 6 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
src/raft/raft.go:115
↓ 5 callers
Method
DeleteServer
(servername interface{})
src/labrpc/labrpc.go:337
↓ 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:588
↓ 5 callers
Function
checkValue
(value interface{})
src/labgob/labgob.go:68
↓ 5 callers
Method
crash1
shut down a Raft server but save its persistent state.
src/raft/config.go:99
↓ 5 callers
Method
mastername
master server name for labrpc.
src/shardkv/config.go:105
↓ 5 callers
Method
partition
Sets up 2 partitions with connectivity between servers in each partition.
src/kvraft/config.go:174
↓ 4 callers
Method
Done
main/mrmaster.go calls Done() periodically to find out if the entire job has finished.
src/mr/master.go:177
↓ 4 callers
Method
LogSize
Maximum log size across all servers
src/kvraft/config.go:82
↓ 4 callers
Method
RaftStateSize
()
src/raft/persister.go:45
↓ 4 callers
Method
bytesTotal
()
src/raft/config.go:292
↓ 4 callers
Method
connectUnlocked
attach server i to servers listed in to caller must hold cfg.mu
src/shardmaster/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/shardmaster/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/shardmaster/config.go:164
↓ 4 callers
Method
sendToChannel
send value to an un-buffered channel without blocking
src/raft/raft.go:216
↓ 4 callers
Method
servername
shard server name for labrpc. i'th server of group gid.
src/shardkv/config.go:111
↓ 4 callers
Method
stepDownToFollower
step down to follower when getting higher term, lock must be held before calling this.
src/raft/raft.go:227
↓ 4 callers
Method
wait
wait for at least n servers to commit. but don't wait forever.
src/raft/config.go:389
↓ 3 callers
Function
Append
(cfg *config, ck *Clerk, key string, value string)
src/kvraft/test_test.go:34
↓ 3 callers
Method
GetTotalBytes
()
src/labrpc/labrpc.go:375
↓ 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
↓ 3 callers
Function
call
send an RPC request to the master, wait for the response. usually returns true. returns false if something goes wrong.
src/mr/worker.go:227
↓ 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:88
↓ 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:280
↓ 3 callers
Method
setunreliable
(unrel bool)
src/raft/config.go:288
↓ 3 callers
Function
spawn_clients_and_wait
spawn ncli clients and wait until they are all done
src/kvraft/test_test.go:57
↓ 2 callers
Method
ConnectAll
()
src/shardmaster/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/shardmaster/config.go:196
↓ 2 callers
Method
ConnectClientUnlocked
caller should hold cfg.mu
src/kvraft/config.go:223
↓ 2 callers
Function
GenericTestLinearizability
similar to GenericTest, but with clients doing random operations (and using a linearizability checker)
src/kvraft/test_test.go:296
next →
1–100 of 386, ranked by callers