Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/YXG520/MIT6.824-6.5840
/ functions
Functions
548 in github.com/YXG520/MIT6.824-6.5840
⨍
Functions
548
◇
Types & classes
106
↓ 90 callers
Function
DPrintf
(level int, format string, a ...interface{})
src/raft/util.go:12
↓ 65 callers
Function
DPrintf
(level int, format string, a ...interface{})
src/shardkv_with_bug/util.go:8
↓ 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:570
↓ 52 callers
Method
SayMeL
()
src/raft/raft.go:709
↓ 49 callers
Method
join
tell the shardctrler that a group is joining.
src/shardkv_with_bug/config.go:306
↓ 48 callers
Method
join
tell the shardctrler that a group is joining.
src/shardkv/config.go:306
↓ 46 callers
Method
Enable
enable/disable a ClientEnd.
src/labrpc/labrpc.go:370
↓ 43 callers
Method
connect
attach server i to the net.
src/raft/config.go:357
↓ 40 callers
Method
Query
(num int)
src/shardctrler/client.go:41
↓ 38 callers
Method
disconnect
detach server i from the net.
src/raft/config.go:382
↓ 35 callers
Function
check
(t *testing.T, ck *Clerk, key string, value string)
src/shardkv/test_test.go:18
↓ 34 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:86
↓ 34 callers
Function
check
(t *testing.T, ck *Clerk, key string, value string)
src/shardkv_with_bug/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:429
↓ 32 callers
Function
randstring
(n int)
src/shardkv_with_bug/config.go:20
↓ 31 callers
Function
randstring
(n int)
src/shardkv/config.go:20
↓ 31 callers
Method
sayBasicInfo
func (kv *ShardKV) printOp(op Op) string { return fmt.Sprintf("[op.Index:%v, op.ClientId:%v,op.SeqId:%v,op.Num:%v,op.Shard:%v,op.GID:%v,op.GIDs:%v,op
src/shardkv_with_bug/server.go:500
↓ 30 callers
Method
Connect
connect a ClientEnd to a server. a ClientEnd can only be connected once in its lifetime.
src/labrpc/labrpc.go:362
↓ 30 callers
Method
MakeEnd
create a client end-point. start the thread that listens and delivers.
src/labrpc/labrpc.go:327
↓ 28 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:257
↓ 26 callers
Method
leave
tell the shardctrler that a group is leaving.
src/shardkv_with_bug/config.go:324
↓ 25 callers
Method
Decode
(e interface{})
src/labgob/labgob.go:54
↓ 24 callers
Method
AddService
(svc *Service)
src/labrpc/labrpc.go:411
↓ 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:635
↓ 24 callers
Method
leave
tell the shardctrler that a group is leaving.
src/shardkv/config.go:324
↓ 23 callers
Function
DPrintf
(level int, format string, a ...interface{})
src/kvraft/util.go:8
↓ 23 callers
Method
Encode
(e interface{})
src/labgob/labgob.go:34
↓ 23 callers
Method
GetState
这个是只给tester调的 return currentTerm and whether this server believes it is the leader.
src/raft/raft.go:131
↓ 23 callers
Method
cleanup
()
src/raft/config.go:344
↓ 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:648
↓ 23 callers
Function
make_config
(t *testing.T, n int, unreliable bool, snapshot bool)
src/raft/config.go:65
↓ 19 callers
Method
makeClient
()
src/shardkv/config.go:118
↓ 19 callers
Method
makeClient
()
src/shardkv_with_bug/config.go:118
↓ 18 callers
Method
AddServer
(servername interface{}, rs *Server)
src/labrpc/labrpc.go:346
↓ 18 callers
Function
DPrintf
(level int, format string, a ...interface{})
src/shardctrler/util.go:8
↓ 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:273
↓ 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:213
↓ 17 callers
Method
Join
The Join RPC is used by an administrator to add new replica groups. Its argument is a set of mappings from unique, non-zero replica group identifiers
src/shardctrler/client.go:72
↓ 17 callers
Method
Put
(key string, value string)
src/shardkv/client.go:156
↓ 17 callers
Method
Put
(key string, value string)
src/shardkv_with_bug/client.go:162
↓ 16 callers
Method
Cleanup
()
src/labrpc/labrpc.go:181
↓ 16 callers
Method
ShutdownGroup
(gi int)
src/shardkv_with_bug/config.go:197
↓ 15 callers
Function
Put
(cfg *config, ck *Clerk, key string, value string, log *OpLog, cli int)
src/kvraft/test_test.go:62
↓ 15 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:146
↓ 14 callers
Method
Append
(key string, value string)
src/shardkv_with_bug/client.go:165
↓ 14 callers
Method
ShutdownGroup
(gi int)
src/shardkv/config.go:197
↓ 14 callers
Function
check
(cfg *config, t *testing.T, ck *Clerk, key string, value string)
src/kvraft/test_test.go:96
↓ 13 callers
Method
Append
(key string, value string)
src/shardkv/client.go:159
↓ 13 callers
Function
DPrintf
(level int, format string, a ...interface{})
src/shardkv/util.go:8
↓ 13 callers
Method
cleanup
()
src/shardkv/config.go:79
↓ 13 callers
Method
cleanup
()
src/shardkv_with_bug/config.go:79
↓ 13 callers
Method
getEntryTerm
(index int)
src/raft/log.go:56
↓ 13 callers
Function
make_config
(t *testing.T, n int, unreliable bool, maxraftstate int)
src/shardkv/config.go:338
↓ 13 callers
Function
make_config
(t *testing.T, n int, unreliable bool, maxraftstate int)
src/shardkv_with_bug/config.go:338
↓ 12 callers
Method
Leave
(gids []int)
src/shardctrler/client.go:99
↓ 12 callers
Method
StartGroup
(gi int)
src/shardkv_with_bug/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:195
↓ 11 callers
Method
All
()
src/kvraft/config.go:160
↓ 11 callers
Function
MakeNetwork
()
src/labrpc/labrpc.go:154
↓ 11 callers
Function
MakeServer
()
src/labrpc/labrpc.go:405
↓ 11 callers
Function
MakeService
(rcvr interface{})
src/labrpc/labrpc.go:459
↓ 10 callers
Method
Copy
()
src/raft/persister.go:30
↓ 10 callers
Method
InstallSnapshot
(serverId int)
src/raft/snapshot.go:107
↓ 10 callers
Method
RaftStateSize
()
src/raft/persister.go:45
↓ 10 callers
Method
ReadSnapshot
()
src/raft/persister.go:66
↓ 10 callers
Method
Reliable
(yes bool)
src/labrpc/labrpc.go:185
↓ 10 callers
Method
StartGroup
(gi int)
src/shardkv/config.go:264
↓ 10 callers
Function
check
import "time"
src/shardctrler/test_test.go:12
↓ 9 callers
Method
StartServer
start i'th server in gi'th group
src/shardkv/config.go:204
↓ 9 callers
Method
StartServer
start i'th server in gi'th group
src/shardkv_with_bug/config.go:204
↓ 9 callers
Method
crash1
shut down a Raft server but save its persistent state.
src/raft/config.go:108
↓ 9 callers
Function
key2shard
which shard is a key in? please use this function, and please do not change it.
src/shardkv_with_bug/client.go:22
↓ 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:403
↓ 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:418
↓ 8 callers
Method
getLastEntryTerm
()
src/raft/raft.go:831
↓ 8 callers
Method
nCommitted
how many servers think a log entry is committed? 输入为提交项的索引,从1开始
src/raft/config.go:492
↓ 7 callers
Method
ShutdownServer
Shutdown i'th server of gi'th group, by isolating it
src/shardkv/config.go:156
↓ 7 callers
Method
ShutdownServer
Shutdown i'th server of gi'th group, by isolating it
src/shardkv_with_bug/config.go:156
↓ 7 callers
Method
StartServer
If restart servers, first call ShutdownServer
src/kvraft/config.go:291
↓ 7 callers
Function
clone
(orig []byte)
src/raft/persister.go:24
↓ 7 callers
Method
getOneEntry
(index int)
src/raft/log.go:28
↓ 7 callers
Function
key2shard
which shard is a key in? please use this function, and please do not change it.
src/shardkv/client.go:22
↓ 7 callers
Method
resetElectionTimer
()
src/raft/leader_election.go:82
↓ 6 callers
Method
All
()
src/shardctrler/config.go:130
↓ 6 callers
Method
DeleteServer
(servername interface{})
src/labrpc/labrpc.go:353
↓ 6 callers
Method
GetCount
()
src/labrpc/labrpc.go:444
↓ 6 callers
Method
Read
()
src/kvraft/test_test.go:35
↓ 6 callers
Method
cleanup
()
src/kvraft/config.go:72
↓ 6 callers
Function
make_config
(t *testing.T, n int, unreliable bool, maxraftstate int)
src/kvraft/config.go:364
↓ 5 callers
Method
Append
(op porcupine.Operation)
src/kvraft/test_test.go:29
↓ 5 callers
Function
Get
get/put/putappend that keep counts
src/kvraft/test_test.go:44
↓ 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:296
↓ 5 callers
Method
Killed
()
src/shardctrler/server.go:353
↓ 5 callers
Function
checkValue
(value interface{})
src/labgob/labgob.go:75
↓ 5 callers
Method
ctrlername
controler server name for labrpc.
src/shardkv/config.go:108
↓ 5 callers
Method
ctrlername
controler server name for labrpc.
src/shardkv_with_bug/config.go:108
↓ 5 callers
Method
getRealIndex
(index int)
src/raft/log.go:25
↓ 5 callers
Method
getWaitCh
(index int)
src/shardctrler/server.go:113
↓ 5 callers
Method
partition
Sets up 2 partitions with connectivity between servers in each partition.
src/kvraft/config.go:177
↓ 5 callers
Method
sayBasicInfo
()
src/shardkv/server.go:240
next →
1–100 of 548, ranked by callers