Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/1345414527/MIT6.824-2022
/ functions
Functions
474 in github.com/1345414527/MIT6.824-2022
⨍
Functions
474
◇
Types & classes
105
Function
CheckEvents
(model Model, history []Event)
porcupine/porcupine.go:23
Function
CheckEventsTimeout
timeout = 0 means no timeout if this operation times out, then a false positive is possible
porcupine/porcupine.go:30
Function
CheckEventsVerbose
timeout = 0 means no timeout if this operation times out, then a false positive is possible
porcupine/porcupine.go:37
Function
CheckOperations
(model Model, history []Operation)
porcupine/porcupine.go:5
Function
CheckOperationsTimeout
timeout = 0 means no timeout if this operation times out, then a false positive is possible
porcupine/porcupine.go:12
Method
CleanShardData
请求清除shard
shardkv/server_shard.go:52
Method
ConnectClient
(ck *Clerk, to []int)
shardctrler/config.go:205
Function
DefaultDescribeOperation
(input interface{}, output interface{})
porcupine/model.go:63
Function
DefaultDescribeState
(state interface{})
porcupine/model.go:67
Method
DisconnectClient
(ck *Clerk, from []int)
shardctrler/config.go:221
Method
DisconnectClient
(ck *Clerk, from []int)
kvraft/config.go:248
Method
FetchShardData
* RPC,针对output shard */ 请求获取shard
shardkv/server_shard.go:22
Method
Get
处理Get rpc
kvraft/server.go:118
Method
Get
* Get和PutAppend RPC的处理 */
shardkv/server_op.go:37
Method
GetCount
get a server's count of incoming RPCs.
labrpc/labrpc.go:368
Method
GetOneTask
Your code here -- RPC handlers for the worker to call. 处理Rpc请求:获取任务
mr/coordinator.go:148
Method
Handler1
(args string, reply *int)
labrpc/test_test.go:23
Method
Handler2
(args int, reply *string)
labrpc/test_test.go:30
Method
Handler3
(args int, reply *int)
labrpc/test_test.go:37
Method
Handler4
args is a pointer
labrpc/test_test.go:45
Method
Handler5
args is a not pointer
labrpc/test_test.go:50
Method
Handler6
(args string, reply *int)
labrpc/test_test.go:54
Method
Handler7
(args int, reply *string)
labrpc/test_test.go:60
Method
InstallSnapshot
(args *InstallSnapshotArgs, reply *InstallSnapshotReply)
raft/raft_snapshot.go:19
Method
Join
* rpc */
shardctrler/server.go:102
Method
Leave
(args *LeaveArgs, reply *LeaveReply)
shardctrler/server.go:111
Method
Len
for sorting by key.
main/mrsequential.go:21
Method
Len
()
porcupine/checker.go:31
Method
Less
(i, j int)
main/mrsequential.go:23
Method
Less
(i, j int)
porcupine/checker.go:39
Method
LogSize
Maximum log size across all servers
shardctrler/config.go:67
Function
Map
(filename string, contents string)
mrapps/jobcount.go:22
Function
Map
The map function is called once for each file of input. The first argument is the name of the input file, and the second is the file's complete conte
mrapps/wc.go:21
Function
Map
(filename string, contents string)
mrapps/nocrash.go:26
Function
Map
The map function is called once for each file of input. This map function just returns 1 for each file
mrapps/early_exit.go:21
Function
Map
(filename string, contents string)
mrapps/mtiming.go:64
Function
Map
(filename string, contents string)
mrapps/rtiming.go:62
Function
Map
The mapping function is called once for each piece of the input. In this framework, the key is the name of the file that is being processed, and the v
mrapps/indexer.go:20
Function
Map
(filename string, contents string)
mrapps/crash.go:34
Method
Move
(args *MoveArgs, reply *MoveReply)
shardctrler/server.go:119
Function
NoPartition
(history []Operation)
porcupine/model.go:51
Function
NoPartitionEvent
(history []Event)
porcupine/model.go:55
Method
PutAppend
处理Put rpc
kvraft/server.go:144
Method
PutAppend
(args *PutAppendArgs, reply *PutAppendReply)
shardkv/server_op.go:44
Method
Query
(args *QueryArgs, reply *QueryReply)
shardctrler/server.go:127
Function
Reduce
(key string, values []string)
mrapps/jobcount.go:34
Function
Reduce
The reduce function is called once for each key generated by the map tasks, with a list of all the values created for that key by any map task.
mrapps/wc.go:41
Function
Reduce
(key string, values []string)
mrapps/nocrash.go:37
Function
Reduce
The reduce function is called once for each key generated by the map tasks, with a list of all the values created for that key by any map task.
mrapps/early_exit.go:32
Function
Reduce
(key string, values []string)
mrapps/mtiming.go:81
Function
Reduce
(key string, values []string)
mrapps/rtiming.go:78
Function
Reduce
The reduce function is called once for each key generated by Map, with a list of that key's string value (merged across all inputs). The return value
mrapps/indexer.go:36
Function
Reduce
(key string, values []string)
mrapps/crash.go:45
Method
RegWorker
处理Rpc请求:注册worker
mr/coordinator.go:169
Function
RegisterName
(name string, value interface{})
labgob/labgob.go:63
Method
ReportTask
处理Rpc请求:worker响应task完成情况
mr/coordinator.go:179
Method
RequestVote
example RequestVote RPC handler.
raft/raft_vote.go:32
Function
ShallowEqual
(state1, state2 interface{})
porcupine/model.go:59
Method
SnapshotSize
()
raft/persister.go:72
Method
Swap
(i, j int)
main/mrsequential.go:22
Method
Swap
(i, j int)
porcupine/checker.go:35
Function
TestBackup2B
(t *testing.T)
raft/test_test.go:509
Function
TestBasic
(t *testing.T)
shardctrler/test_test.go:81
Function
TestBasic
(t *testing.T)
labrpc/test_test.go:69
Function
TestBasic3A
(t *testing.T)
kvraft/test_test.go:426
Function
TestBasicAgree2B
(t *testing.T)
raft/test_test.go:133
Function
TestBenchmark
(t *testing.T)
labrpc/test_test.go:568
Function
TestBytes
test net.GetTotalBytes()
labrpc/test_test.go:221
Function
TestCapital
make sure we check capitalization labgob prints one warning during this test.
labgob/test_test.go:119
Function
TestChallenge1Delete
optional test to see whether servers are deleting shards for which they are no longer responsible.
shardkv/test_test.go:744
Function
TestChallenge2Partial
optional test to see whether servers can handle operations on shards that have been received as a part of a config migration when the entire migratio
shardkv/test_test.go:900
Function
TestChallenge2Unaffected
optional test to see whether servers can handle shards that are not affected by a config change while the config change is underway
shardkv/test_test.go:830
Function
TestConcurrent1
(t *testing.T)
shardkv/test_test.go:307
Function
TestConcurrent2
this tests the various sources from which a re-starting group might need to fetch shard contents.
shardkv/test_test.go:388
Function
TestConcurrent3
(t *testing.T)
shardkv/test_test.go:459
Function
TestConcurrent3A
(t *testing.T)
kvraft/test_test.go:435
Function
TestConcurrentMany
test RPCs from concurrent ClientEnds
labrpc/test_test.go:275
Function
TestConcurrentOne
test concurrent RPCs from a single ClientEnd
labrpc/test_test.go:386
Function
TestConcurrentStarts2B
(t *testing.T)
raft/test_test.go:370
Function
TestCount2B
(t *testing.T)
raft/test_test.go:581
Function
TestCounts
test net.GetCount()
labrpc/test_test.go:185
Function
TestDefault
check that we warn when someone sends a default value over RPC but the target into which we're decoding holds a non-default value, which GOB seems no
labgob/test_test.go:146
Function
TestDisconnect
does net.Enable(endname, false) really disconnect a client?
labrpc/test_test.go:146
Function
TestFailAgree2B
test that a follower participates after disconnect and re-connect.
raft/test_test.go:285
Function
TestFailNoAgree2B
(t *testing.T)
raft/test_test.go:319
Function
TestFigure82C
Test the scenarios described in Figure 8 of the extended Raft paper. Each iteration asks a leader, if there is one, to insert a command in the Raft l
raft/test_test.go:823
Function
TestFigure8Unreliable2C
(t *testing.T)
raft/test_test.go:908
Function
TestFor2023TestFollowerFailure2B
test just failure of followers.
raft/test_test.go:195
Function
TestFor2023TestLeaderFailure2B
test just failure of leaders.
raft/test_test.go:242
Function
TestGOB
test that we didn't break GOB.
labgob/test_test.go:27
Function
TestInitialElection2A
TestInitialElection测试启动后Raft集群是否能够选出一个leader, 并检查在网络稳定的情况,也就是不应该发生心跳信号等待超时的情况下, 是否能保持原来的leader和term状态不变。
raft/test_test.go:25
Function
TestJoinLeave
(t *testing.T)
shardkv/test_test.go:100
Function
TestKilled
if an RPC is stuck in a server, and the server is killed with DeleteServer(), does the RPC get un-stuck?
labrpc/test_test.go:523
Function
TestManyElections2A
TestManyElections测试是上一个测试的现实版本。每次随机令2个服务器离线,检查集群状态是否符合要求。如此重复10次。
raft/test_test.go:100
Function
TestManyPartitionsManyClients3A
(t *testing.T)
kvraft/test_test.go:560
Function
TestManyPartitionsOneClient3A
(t *testing.T)
kvraft/test_test.go:555
Function
TestMissChange
(t *testing.T)
shardkv/test_test.go:221
Function
TestMulti
(t *testing.T)
shardctrler/test_test.go:253
Function
TestOnePartition3A
Submit a request in the minority partition and check that the requests doesn't go through until the partition heals. The leader in the original netwo
kvraft/test_test.go:480
Function
TestPersist12C
(t *testing.T)
raft/test_test.go:691
← previous
next →
301–400 of 474, ranked by callers