pingcap / pingcap/tidb

"br log status " does return error message after started an incremental backup task ,but It does not work normally actually.

Open
#50,575 0 comments 0 reactions 0 assignees View on GitHub
component/br severity/moderate type/bug
Dominant language
Go
Stars
40.5k
Forks
6.2k
PR merge metrics
PR metrics pending

Description

## Bug Report

Please answer these questions before submitting your issue. Thanks!

### 1. Minimal reproduce step (Required)

Step 1: Firstly configure log-backup.temp-path which tidb does not have write permissions, for example /root
![image](https://github.com/pingcap/tidb/assets/25808299/d22dbf50-31be-43df-8af9-d7f42df8a68d)

Step 2: Start a incremental backup task
tiup br log start --task-name='pitr' --pd=192.168.56.102:2379 --storage="/backup/pitr"
![image](https://github.com/pingcap/tidb/assets/25808299/97769cad-e67e-43ea-94fb-5b4773887160)

Step 3: Query incremental backup task status
tiup br log status --pd=192.168.56.102:2379
![image](https://github.com/pingcap/tidb/assets/25808299/08fdb656-476b-43d0-81b7-f93439b2ac23)

Step4: “status: ● NORMA” will confuse users ,Because the task is unnormmal. We can find messages in tikv.log as follows:
[2024/01/19 09:29:50.036 +08:00] [WARN] [errors.rs:171] ["backup stream meet error"] [verbose_err="Io(Os { code: 13, kind: PermissionDenied, message: \"Permission denied\" })"] [err="I/O Error: Permission denied (os error 13)"] [context="failed to register backup stream task pitr to router: ranges not found"]

### 2. What did you expect to see? (Required)
I think the status should return unnormal or error .

### 3. What did you see instead (Required)
You always only find "status: ● NORMAL" beside the gap will more and more bigger.

### 4. What is your TiDB version? (Required)
mysql> select tidb_version();
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| tidb_version() |
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
| Release Version: v6.5.5
Edition: Community
Git Commit Hash: 71bcc44f77a37cfb0a6dc3660e092c78c1e46acb
Git Branch: heads/refs/tags/v6.5.5
UTC Build Time: 2023-09-18 10:20:26
GoVersion: go1.19.12
Race Enabled: false
TiKV Min Version: 6.2.0-alpha
Check Table Before Drop: false
Store: tikv |
+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
1 row in set (0.01 sec)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.