Skip to content

sst_importer may leak sst files once lightning encounters error due to wrong range loaded #14745

@YuJuncen

Description

@YuJuncen

Bug Report

What version of TiKV are you using?

the current master

What operating system and CPU are you using?

unrelated

Steps to reproduce

Run tidb-lightning and make some region epoch changes between writing and ingesting.
More detailed:

  1. Upload a SST by write.
  2. But, don't ingest it.
  3. Scatter the region bound to the SST meta, make the store we are writeing to no more has a peer of that region.

What did you expect?

After tidb-lightning exits, the SST file should be cleaned.

What did happened?

Even time passed 5 days, the SST file hasn't been removed.

Metadata

Metadata

Assignees

No one assigned

    Labels

    affects-6.1This bug affects the 6.1.x(LTS) versions.affects-6.5This bug affects the 6.5.x(LTS) versions.affects-7.1This bug affects the 7.1.x(LTS) versions.severity/majortype/bugThe issue is confirmed as a bug.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions