pingcap / pingcap/tidb

import/lightning: Allow creation of parent directories for sorted-kv-dir

Open
#58,667 1 comment 0 reactions 0 assignees View on GitHub
component/lightning type/enhancement
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Enhancement

Currently, when using Lightning's import functionality, an error is returned if the parent directory of the `sorted-kv-dir` specified in the configuration does not exist. We could enhance this behavior by automatically creating the parent directory along with `sorted-kv-dir`. This change would provide greater flexibility for users, allowing them to specify paths without worrying about manually creating the parent directories first.

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.