清理故障store的region(4.3.2)报错
[tidb@tidb-srv001 bin]$ ./tikv-ctl --data-dir /data/tidb-data/tikv-20160 unsafe-recover remove-fail-stores -s 17041,17095 --all-regions
[2022/01/28 15:17:39.608 +08:00] [INFO] [mod.rs:118] [“encryption: none of key dictionary and file dictionary are found.”]
[2022/01/28 15:17:39.608 +08:00] [INFO] [mod.rs:479] [“encryption is disabled.”]
[2022/01/28 15:17:39.609 +08:00] [WARN] [config.rs:587] [“compaction guard is disabled due to region info provider not available”]
[2022/01/28 15:17:39.609 +08:00] [WARN] [config.rs:682] [“compaction guard is disabled due to region info provider not available”]
thread ‘main’ panicked at ‘called Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: “No such file or directory” }’, cmd/tikv-ctl/src/main.rs:123:57
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace
上面路径确实错了,正确路径应该是/data/tidb-data/tikv-20160/db,但是我改成这样还是报错
[tidb@tidb-srv001 bin]$ ./tikv-ctl --data-dir /data/tidb-data/tikv-20160/db unsafe-recover remove-fail-stores -s 17041,17095 --all-regions
[2022/02/07 15:47:28.831 +08:00] [INFO] [mod.rs:118] [“encryption: none of key dictionary and file dictionary are found.”]
[2022/02/07 15:47:28.831 +08:00] [INFO] [mod.rs:479] [“encryption is disabled.”]
[2022/02/07 15:47:28.832 +08:00] [WARN] [config.rs:587] [“compaction guard is disabled due to region info provider not available”]
[2022/02/07 15:47:28.832 +08:00] [WARN] [config.rs:682] [thread ‘"maincompaction guard is disabled due to region info provider not available’ panicked at ‘"called Result::unwrap() on an Err value: Os { code: 2, kind: NotFound, message: “No such file or directory” }]’,
cmd/tikv-ctl/src/main.rs:123:57
note: run with RUST_BACKTRACE=1 environment variable to display a backtrace