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

Method recreateContainers

dgraphtest/local_cluster.go:996–1010  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

994}
995
996func (c *LocalCluster) recreateContainers() error {
997 if err := c.destroyContainers(); err != nil {
998 return errors.Wrapf(err, "error while recreaing containers")
999 }
1000
1001 if err := c.setupBeforeCluster(); err != nil {
1002 return errors.Wrap(err, "error while setupBeforeCluster")
1003 }
1004
1005 if err := c.createContainers(); err != nil {
1006 return errors.Wrapf(err, "error while creating containers")
1007 }
1008
1009 return nil
1010}
1011
1012// Client returns a grpc client that can talk to any Alpha in the cluster
1013func (c *LocalCluster) Client() (*dgraphapi.GrpcClient, func(), error) {

Callers 1

UpgradeMethod · 0.95

Calls 3

destroyContainersMethod · 0.95
setupBeforeClusterMethod · 0.95
createContainersMethod · 0.95

Tested by

no test coverage detected