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

Method Stop

server/server.go:144–149  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

142}
143
144func (srv *Server) Stop() error {
145 srv.controller.Close()
146 gracefulCtx, cancel := context.WithTimeout(context.Background(), 30*time.Second)
147 defer cancel()
148 return srv.httpServer.Shutdown(gracefulCtx)
149}

Callers 5

mainFunction · 0.95
TestCluster_LoadAndProbeFunction · 0.45
TestCluster_MigrateSlotFunction · 0.45
probeLoopMethod · 0.45
migrationLoopMethod · 0.45

Calls 1

CloseMethod · 0.65

Tested by 2

TestCluster_LoadAndProbeFunction · 0.36
TestCluster_MigrateSlotFunction · 0.36