What logs are written during Lightning import?

This topic has been translated from a Chinese forum by GPT and might contain errors.

Original topic: lightning导入时都写那些日志?

| username: 逍遥_猫

[Test Environment for TiDB] Testing
[TiDB Version] v4.0.13
[Reproduction Path]
[Encountered Problem: Phenomenon and Impact] When importing CSV with lightning, an error occurred, and a large number of logs appeared under tikv, causing the hard disk to be full. After deleting some logs, tikv reported success when starting, but the cluster status showed as down.

Seeking advice from experts, what logs are written during lightning? Are there logs under tidb, tikv, and the import directory under tikv, or any others?
If an error occurs and the logs grow rapidly causing the disk to be full, will deleting those logs affect the normal operation of the cluster?

| username: 有猫万事足 | Original post link

Deleting logs will not make the cluster inaccessible, unless data files are deleted.

| username: zhanggame1 | Original post link

After deleting some logs, TiKV reports success when starting, but the cluster status shows as down.

Please provide the directory and file names you deleted, as there is a possibility that the wrong files were deleted.

| username: tidb菜鸟一只 | Original post link

Post the cluster status, make sure you didn’t delete the data files.

| username: 逍遥_猫 | Original post link

Deleted the logs in tidb-data/tikv-20160/logs.
Checked the err logs in this directory, it reports that files or directories are missing in the import directory.

| username: 逍遥_猫 | Original post link

Absolutely did not touch the SST file.

| username: 有猫万事足 | Original post link

If possible, please post the err log.
My version is different, and I don’t have this directory, so it’s hard to determine why it won’t start.