Skip to content

dumpling -L save logs in a directory without permission, no error and no log #60689

@yi888long

Description

@yi888long

Bug Report

Please answer these questions before submitting your issue. Thanks!

1. Minimal reproduce step (Required)

dumpling -h 10.x.x.3 -P 4913 -u root -t 16 -r 200000 -F 256MiB -T test.test0407 -o /home/tidb/0411/ -L /home/dump.log

When using the dumpling tool and specifying the -L option to save logs into a directory without permission, no error is reported and no log file is generated.

[tidb@ home]$ ll -d /home
drwxr-xr-x 9 root root 4096 Jun 21 2023 /home
[tidb@ home]$ touch dump.log
touch: cannot touch ‘dump.log’: Permission denied

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

error: Permission denied

3. What did you see instead (Required)

dump.log no log.

4. What is your TiDB version? (Required)

v8.5.1

Metadata

Metadata

Assignees

Labels

affects-8.5This bug affects the 8.5.x(LTS) versions.component/dumplingThis is related to Dumpling of TiDB.severity/moderatetype/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