mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
fix(data): Change the log level of dp not exist in repl_protocol from error to warn. #1000157333
Signed-off-by: zhumingze <zhumingze@oppo.com>
This commit is contained in:
parent
1ca22fc68c
commit
cadef3627a
@ -437,7 +437,8 @@ func (rp *ReplProtocol) writeResponse(reply *Packet) {
|
||||
} else if (reply.ResultCode == proto.OpTryOtherAddr && reply.Opcode == proto.OpWrite) ||
|
||||
reply.Opcode == proto.OpReadTinyDeleteRecord ||
|
||||
(reply.Opcode == proto.OpWrite && proto.IsTinyExtentType(reply.ExtentType) && strings.Contains(err.Error(), "GetAvailableTinyExtent error no available extent")) ||
|
||||
(reply.Opcode == proto.OpWrite && reply.ResultCode == proto.OpLimitedIoErr && strings.Contains(err.Error(), ActionReceiveFromFollower)) {
|
||||
(reply.Opcode == proto.OpWrite && reply.ResultCode == proto.OpLimitedIoErr && strings.Contains(err.Error(), ActionReceiveFromFollower)) ||
|
||||
strings.Contains(err.Error(), proto.ErrDataPartitionNotExists.Error()) {
|
||||
log.LogWarnf(err.Error())
|
||||
} else {
|
||||
log.LogErrorf(err.Error())
|
||||
|
||||
@ -94,7 +94,7 @@ func (s *DataNode) checkPartition(p *repl.Packet) (err error) {
|
||||
dp := s.space.Partition(p.PartitionID)
|
||||
if dp == nil {
|
||||
// err = proto.ErrDataPartitionNotExists
|
||||
err = fmt.Errorf("data partition not exists %v", p.PartitionID)
|
||||
err = fmt.Errorf("%v %v", proto.ErrDataPartitionNotExists.Error(), p.PartitionID)
|
||||
return
|
||||
}
|
||||
p.Object = dp
|
||||
|
||||
Loading…
Reference in New Issue
Block a user