doris2.1.7在程序中执行报错查询副本不存在?

Viewed 13

具体报错如下:
Error 1105: errCode = 2, detailMessage = tablet 59205878 has no queryable replicas. err: Replica on backend 13103 with tag {"location" : "group_online02"}, which is not in user's resource tags: [{"location" : "group_online"}], Replica on backend 11442 with tag {"location" : "group_stream"}, which is not in user's resource tags: [{"location" : "group_online"}], Replica on backend 13105 with tag {"location" : "group_offline"}, which is not in user's resource tags: [{"location" : "group_online"}]]
查看该节点的tablet副本均是全的,
但是过了几秒钟后查询,该副本就全了,查询也不报错了,这到底是什么鬼?

1 Answers

可能是副本在进行 balance,您可以到 be_id = 13103 这台节点上 grep 一下 59205878 ,查看下是否有在进行balance。

如果磁盘不均衡或者是垃圾数据太多,磁盘使用率不均衡可能会出现balance,出现这种情况。可以手动 disable balance