MCPcopy Create free account
hub / github.com/dgraph-io/dgraph / StopAlphasAndDetectRace

Function StopAlphasAndDetectRace

testutil/bulk.go:197–207  ·  view source on GitHub ↗
(alphas []string)

Source from the content-addressed store, hash-verified

195}
196
197func StopAlphasAndDetectRace(alphas []string) (raceDetected bool) {
198 raceDetected = DetectRaceInAlphas(DockerPrefix)
199 args := []string{"compose", "-p", DockerPrefix, "rm", "-f", "-s", "-v"}
200 args = append(args, alphas...)
201 cmd := exec.CommandContext(context.Background(), "docker", args...)
202 fmt.Printf("Running: %s with %s\n", cmd, DockerPrefix)
203 if err := cmd.Run(); err != nil {
204 fmt.Printf("Error while bringing down cluster. Prefix: %s. Error: %v\n", DockerPrefix, err)
205 }
206 return raceDetected
207}

Callers 4

cleanupMethod · 0.92
cleanupAndExitFunction · 0.92
cleanupAndExitFunction · 0.92
cleanupAndExitFunction · 0.92

Calls 2

DetectRaceInAlphasFunction · 0.85
RunMethod · 0.45

Tested by 3

cleanupAndExitFunction · 0.74
cleanupAndExitFunction · 0.74
cleanupAndExitFunction · 0.74

Used in the wild real call sites across dependent graphs

searching dependent graphs…