Skip to content

Commit

Permalink
Merge pull request cubefs#884 from awzhgw/startfail
Browse files Browse the repository at this point in the history
Fix: datanode start failed
  • Loading branch information
awzhgw authored Sep 3, 2020
2 parents 42ebf0c + 0c41b2a commit 9d4ef64
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions datanode/partition_op_by_raft.go
Original file line number Diff line number Diff line change
Expand Up @@ -241,12 +241,13 @@ func (dp *DataPartition) ApplyRandomWrite(command []byte, raftApplyID uint64) (r
if dp.checkIsDiskError(err) {
return
}
if strings.Contains(err.Error(),storage.ExtentNotFoundError.Error()){
err=nil
}
if err == nil {
break
}
if strings.Contains(err.Error(),storage.ExtentNotFoundError.Error()){
err=nil
return
}
log.LogErrorf("[ApplyRandomWrite] ApplyID(%v) Partition(%v)_Extent(%v)_ExtentOffset(%v)_Size(%v) apply err(%v) retry(%v)", raftApplyID, dp.partitionID, opItem.extentID, opItem.offset, opItem.size, err, i)
}

Expand Down

0 comments on commit 9d4ef64

Please sign in to comment.