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

Function primaryCrashElectRestart

ais/tests/multiproxy_test.go:95–98  ·  view source on GitHub ↗

primaryCrashElectRestart kills the current primary proxy, wait for the new primary proxy is up and verifies it, restores the original primary proxy as non primary

(t *testing.T)

Source from the content-addressed store, hash-verified

93// primaryCrashElectRestart kills the current primary proxy, wait for the new primary proxy is up and verifies it,
94// restores the original primary proxy as non primary
95func primaryCrashElectRestart(t *testing.T) {
96 proxyURL := tutils.RandomProxyURL(t)
97 killRestorePrimary(t, proxyURL, false, nil)
98}
99
100func killRestorePrimary(t *testing.T, proxyURL string, restoreAsPrimary bool,
101 postKill func(smap *cluster.Smap, newPrimary, oldPrimary *cluster.Snode)) *cluster.Smap {

Callers

nothing calls this directly

Calls 2

RandomProxyURLFunction · 0.92
killRestorePrimaryFunction · 0.85

Tested by

no test coverage detected