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

Method Start

server/server.go:132–142  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

130}
131
132func (srv *Server) Start(ctx context.Context) error {
133 if ok := srv.store.IsReady(ctx); !ok {
134 return fmt.Errorf("the cluster store is not ready")
135 }
136 if err := srv.controller.Start(ctx); err != nil {
137 return err
138 }
139 srv.controller.WaitForReady()
140 srv.startAPIServer()
141 return nil
142}
143
144func (srv *Server) Stop() error {
145 srv.controller.Close()

Callers 4

mainFunction · 0.95
runTransportMethod · 0.45
TestClusterFailoverFunction · 0.45
TestClusterMigrateDataFunction · 0.45

Calls 4

startAPIServerMethod · 0.95
ErrorfMethod · 0.80
WaitForReadyMethod · 0.80
IsReadyMethod · 0.65

Tested by 2

TestClusterFailoverFunction · 0.36
TestClusterMigrateDataFunction · 0.36