MCPcopy Create free account
hub / github.com/apache/kvrocks-controller / GetNode

Method GetNode

store/engine/raft/node_test.go:115–120  ·  view source on GitHub ↗
(i int)

Source from the content-addressed store, hash-verified

113}
114
115func (c *TestCluster) GetNode(i int) *Node {
116 if i < 0 || i >= len(c.nodes) {
117 return nil
118 }
119 return c.nodes[i]
120}
121
122// GetLeaderNode returns the leader node, if there is no leader or reach consensus return raft.None.
123// excludeNodeID is the node ID that will be excluded from the leader check, it's useful when we want to

Callers 4

TestCluster_SingleNodeFunction · 0.95
TestCluster_MultiNodesFunction · 0.95
TestTriggerSnapshotFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected