Skip to content

dumpling -L save logs in a directory without permission, error should be show in stderr #61100

@GMHDBJD

Description

@GMHDBJD

Bug Report

Please answer these questions before submitting your issue. Thanks!
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

1. Minimal reproduce step (Required)

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

3. What did you see instead (Required)

4. What is your TiDB version? (Required)

master

Metadata

Metadata

Assignees

No one assigned

    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