Skip to content

ingester_v2 reporting quite a bit of "failed to delete idle TSDB" error #3620

@alvinlin123

Description

@alvinlin123

Describe the bug
We are seeing error message like

level=error ts=2020-12-15T21:33:44.395830698Z caller=ingester_v2.go:1623 msg="failed to delete idle TSDB" user=some-user-id err="unlinkat /data/tsdb/some-user-id: directory not empty"

We are using this commit

To Reproduce
I am not sure

Expected behavior
A clear and concise description of what you expected to happen.

Environment:

  • Infrastructure: EKS
  • Deployment tool: Helm

Storage Engine

  • [ X ] Blocks
  • Chunks

Additional Context
The error happens during a call to os.RemoveAll() call, research shows that RemoveAll() might return "directory not empty" error if file are created under the directory while the removal process is on going. So I am wondering if there is any background process in ingester that maybe interfering with the local TSDB deletion process?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions