MCPcopy
hub / github.com/dgraph-io/dgraph / killContainer

Method killContainer

dgraphtest/local_cluster.go:720–727  ·  view source on GitHub ↗
(dc dnode)

Source from the content-addressed store, hash-verified

718}
719
720func (c *LocalCluster) killContainer(dc dnode) error {
721 ctx, cancel := context.WithTimeout(context.Background(), requestTimeout)
722 defer cancel()
723 if err := c.dcli.ContainerKill(ctx, dc.cid(), "SIGKILL"); err != nil {
724 return errors.Wrapf(err, "error killing container [%v]", dc.cname())
725 }
726 return nil
727}
728
729func (c *LocalCluster) HealthCheck(zeroOnly bool) error {
730 log.Printf("[INFO] checking health of containers")

Callers 1

KillAlphaMethod · 0.95

Calls 2

cidMethod · 0.65
cnameMethod · 0.65

Tested by

no test coverage detected