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

Method Close

store/engine/raft/node.go:527–541  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

525}
526
527func (n *Node) Close() error {
528 if !n.isRunning.CompareAndSwap(true, false) {
529 return nil
530 }
531 close(n.shutdown)
532 n.raftNode.Stop()
533 n.transport.Stop()
534 if err := n.httpServer.Close(); err != nil {
535 return err
536 }
537
538 n.dataStore.Close()
539 n.wg.Wait()
540 return nil
541}

Callers 1

applyEntryMethod · 0.95

Implementers 1

ClusterNodestore/cluster_node.go

Calls 2

CloseMethod · 0.65
StopMethod · 0.45

Tested by

no test coverage detected