MCPcopy
hub / github.com/etcd-io/etcd / triggerDefrag

Function triggerDefrag

tests/e2e/failover_test.go:201–204  ·  view source on GitHub ↗
(t *testing.T, member e2e.EtcdProcess)

Source from the content-addressed store, hash-verified

199}
200
201func triggerDefrag(t *testing.T, member e2e.EtcdProcess) {
202 require.NoError(t, member.Failpoints().SetupHTTP(context.Background(), "defragBeforeCopy", `sleep("10s")`))
203 require.NoError(t, member.Etcdctl().Defragment(context.Background(), config.DefragOption{Timeout: time.Minute}))
204}

Callers 1

TestFailoverOnDefragFunction · 0.70

Calls 4

SetupHTTPMethod · 0.80
FailpointsMethod · 0.65
DefragmentMethod · 0.65
EtcdctlMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…