You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
|
问题如图所示,显示版本号不一致
|
|
|
|
|
![[fdc681c6a4a31bdd046a2479b385b7ec.jpg]]
|
|
|
|
|
|
|
|
|
|
修复过程如下:
|
|
|
|
|
### 1.查询副本明细
|
|
|
|
|
```sql
|
|
|
|
|
-- 13403365 是日志中显示的tablet_id
|
|
|
|
|
show tablet 13403365
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
执行SQL后,查看DetailCmd 字段
|
|
|
|
|
![[0f6c98a943e746bfa8191c08574d4a6b.jpg]]
|
|
|
|
|
在执行其中的语句
|
|
|
|
|
```sql
|
|
|
|
|
show proc '/dbs/116719/13403319/partitions/13403318/13403320/13403365'
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
查看LstFailedVersion 字段,如果全是 -1 表示副本状态正常
|
|
|
|
|
查看LstSuccessVersion 字段,如果一致,表示副本状态正常
|
|
|
|
|
|
|
|
|
|
如图所示,第一行就是坏副本
|
|
|
|
|
![[bb013685c11c79aafd42182d71941204.jpg]]
|
|
|
|
|
### 2.手动修复副本
|
|
|
|
|
|
|
|
|
|
doris 可以将某个坏副本状态设置成bad,之后doris会自动将正常副本的数据同步一份到坏副本
|
|
|
|
|
|
|
|
|
|
```sql
|
|
|
|
|
admin set replica status properties ("tablet_id"="13403365","backend_id"="116686","status"="bad")
|
|
|
|
|
```
|