Skip to content

wrong order of checking fast DDL available and cleanup #52639

Closed
@lance6716

Description

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

tidb/pkg/ddl/index.go

Lines 792 to 798 in 6660de7

available, err := ingest.LitBackCtxMgr.CheckAvailable()
if err != nil {
return model.ReorgTypeNone, err
}
if available {
ctx := logutil.WithCategory(ctx, "ddl-ingest")
err = cleanupSortPath(ctx, job.ID)

if the free space is less than 10% we will always fail on CheckAvailable, no chance to run cleanupSortPath

2. What did you expect to see? (Required)

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

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