MCPcopy Create free account
hub / github.com/cortexproject/cortex / FlushTransferer

Interface FlushTransferer

pkg/ring/flush.go:7–9  ·  view source on GitHub ↗

FlushTransferer controls the shutdown of an instance in the ring. Methods on this interface are called when lifecycler is stopping. At that point, it no longer runs the "actor loop", but it keeps updating heartbeat in the ring. Ring entry is in LEAVING state.

Source from the content-addressed store, hash-verified

5// At that point, it no longer runs the "actor loop", but it keeps updating heartbeat in the ring.
6// Ring entry is in LEAVING state.
7type FlushTransferer interface {
8 Flush()
9}
10
11// NoopFlushTransferer is a FlushTransferer which does nothing and can
12// be used in cases we don't need one

Callers 5

processShutdownMethod · 0.65
runningMethod · 0.65
CloseMethod · 0.65
TestIngester_ForFlushFunction · 0.65

Implementers 6

NoopFlushTransfererpkg/ring/flush.go
nopFlushTransfererpkg/ring/lifecycler_test.go
noopFlushTransfererpkg/ring/lifecycler_test.go
passthroughServerpkg/storegateway/batchable.go
batchableServerpkg/storegateway/batchable.go
Ingesterpkg/ingester/ingester.go

Calls

no outgoing calls

Tested by

no test coverage detected