MCPcopy
hub / github.com/NVIDIA/aistore / GetRestoreCmd

Function GetRestoreCmd

devtools/tutils/node.go:558–569  ·  view source on GitHub ↗
(si *cluster.Snode)

Source from the content-addressed store, hash-verified

556}
557
558func GetRestoreCmd(si *cluster.Snode) RestoreCmd {
559 var (
560 err error
561 cmd = RestoreCmd{Node: si}
562 )
563 if docker.IsRunning() {
564 return cmd
565 }
566 cmd.PID, cmd.Cmd, cmd.Args, err = getProcess(si.PubNet.Port)
567 cos.AssertNoErr(err)
568 return cmd
569}
570
571// EnsureOrigClusterState verifies the cluster has the same nodes after tests
572// If a node is killed, it restores the node

Callers 4

TestMaintenanceMDFunction · 0.92
getAISNodeCmdFunction · 0.85
initNodeCmdFunction · 0.85

Calls 3

IsRunningFunction · 0.92
AssertNoErrFunction · 0.92
getProcessFunction · 0.85

Tested by 2

TestMaintenanceMDFunction · 0.74