You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Without data-dir in config, add --data-dir option in command line, dump-file panic as following:
sh-5.1# /tikv-ctl --config=/etc/tikv/tikv.toml --ca-path /var/lib/tikv-tls/ca.crt --cert-path /var/lib/tikv-tls/tls.crt --key-path /var/lib/tikv-tls/tls.key --data-dir=/var/lib/tikv/data/ --host=127.0.0.1:20160 encryption-meta dump-file
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Io(Os { code: 2, kind: NotFound, message: "No such file or directory" })', cmd/tikv-ctl/src/main.rs:211:88
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
After adding data-dir in config.toml as following, command succeeded.
close#16094
In previous version, users who wanna use tikv-ctl to dump the encryption meta
might be confused with the ambiguous errors on `data-dir` configuration.
To make this tool easier to use, the hints on setting `data-dir` will be present
to users if they miss the configuration `storage.data-dir` in tikv.toml and `--data-dir`,
when using `encryption-meta` command.
Signed-off-by: lucasliang <nkcs_lykx@hotmail.com>
Bug Report
What version of TiKV are you using?
master
What operating system and CPU are you using?
Steps to reproduce
What did you expect?
What did happened?
Without data-dir in config, add --data-dir option in command line, dump-file panic as following:
After adding data-dir in config.toml as following, command succeeded.
The text was updated successfully, but these errors were encountered: