pingcap / pingcap/tidb

If nothing is restored, it should not record as a task in mysql.tidb_restore_registry

Open
#63,889 0 comments 0 reactions 0 assignees View on GitHub
component/br type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement

Currently, even when a restore job ends up restoring nothing (i.e., it’s an empty restore), we still record a task entry in mysql.tidb_restore_registry. This can lead to unnecessary metadata entries and may cause potential conflicts with future restore operations.

However, since we can detect that this is an empty restore, it is more appropriate to skip task registration altogether in such cases to avoid polluting the registry and reduce the chance of false-positive conflicts.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.