Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
144
func
(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
main
Function · 0.95
TestCluster_LoadAndProbe
Function · 0.45
TestCluster_MigrateSlot
Function · 0.45
probeLoop
Method · 0.45
migrationLoop
Method · 0.45
Calls
1
Close
Method · 0.65
Tested by
2
TestCluster_LoadAndProbe
Function · 0.36
TestCluster_MigrateSlot
Function · 0.36