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

Method startingV2ForFlusher

pkg/ingester/ingester.go:934–944  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

932}
933
934func (i *Ingester) startingV2ForFlusher(ctx context.Context) error {
935 if err := i.openExistingTSDB(ctx); err != nil {
936 // Try to rollback and close opened TSDBs before halting the ingester.
937 i.closeAllTSDB()
938
939 return errors.Wrap(err, "opening existing TSDBs")
940 }
941
942 // Don't start any sub-services (lifecycler, compaction, shipper) at all.
943 return nil
944}
945
946func (i *Ingester) starting(ctx context.Context) error {
947 // Important: we want to keep lifecycler running until we ask it to stop, so we need to give it independent context

Callers

nothing calls this directly

Implementers 1

Ingesterpkg/ingester/ingester.go

Calls 3

openExistingTSDBMethod · 0.95
closeAllTSDBMethod · 0.95
WrapMethod · 0.65

Tested by

no test coverage detected