Skip to content

Ingesters panic during shutdown causing data loss #4397

Closed
@rsteneteg

Description

@rsteneteg

Describe the bug
During a rolling restart of the Cortex ingesters some of the ingesters paniced causing data loss as all data had not been flushed to WAL yet.

To Reproduce
I have been unable to repro this except in Unit tests

Expected behavior
Ingesters should not crash during shutdown

Environment:

  • Infrastructure: [Kubernetes]
  • Deployment tool: [helm]
  • Version: 1.4.0

Storage Engine

  • Blocks
  • Chunks

Additional Context

Logs from crashed ingester

/Users/rsteneteg/work/cortex/pkg/chunk/cache/memcached.go:187 +0x98
created by github.com/cortexproject/cortex/pkg/chunk/cache.(*Memcached).fetchKeysBatched
/Users/rsteneteg/work/cortex/pkg/chunk/cache/memcached.go:190 +0x58
github.com/cortexproject/cortex/pkg/chunk/cache.(*Memcached).fetchKeysBatched.func1(0x42a07cdae0, 0x1, 0x1, 0x400, 0x4000942150, 0x37d9d80, 0x4085aaf0e0, 0x414fe3b680)
goroutine 10716258567 [running]:
panic: send on closed channel

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions