fix(client): if follower read is enabled, try other hosts when triggering OpNotExistErr

close:#1000078338

Signed-off-by: chihe <chihe@oppo.com>
This commit is contained in:
chihe 2025-04-23 14:57:14 +08:00 committed by zhumingze1108
parent 4a38fa1418
commit 42e6bd21da

View File

@ -130,9 +130,10 @@ func (reader *ExtentReader) checkStreamReply(request *Packet, reply *Packet) (er
return TryOtherAddrError
}
if reply.ResultCode == proto.OpNotExistErr {
return ExtentNotFoundError
}
// if follower read is enabled, try other hosts when triggering OpNotExistErr
// if reply.ResultCode == proto.OpNotExistErr {
// return ExtentNotFoundError
// }
if reply.ResultCode != proto.OpOk {
if request.Opcode == proto.OpStreamFollowerRead && reply.ResultCode != proto.OpForbidErr {