mirror of
https://github.com/cubefs/cubefs.git
synced 2026-08-02 02:00:56 +00:00
fix(client): not move flashnoe to unknownRank if returned LimitedIoError.#1000065874
Signed-off-by: baihailong <baihailong@oppo.com>
This commit is contained in:
parent
f5c02acd5e
commit
19b1bf9319
@ -1701,6 +1701,7 @@ type FlashNodeSetIOLimitsRequest struct {
|
||||
func IsFlashNodeLimitError(err error) bool {
|
||||
if strings.Compare(err.Error(), util.LimitedRunError.Error()) == 0 ||
|
||||
strings.Compare(err.Error(), util.LimitedFlowError.Error()) == 0 ||
|
||||
strings.Compare(err.Error(), util.LimitedIoError.Error()) == 0 ||
|
||||
strings.Compare(err.Error(), "context deadline exceeded") == 0 ||
|
||||
strings.Compare(err.Error(), "require data is caching") == 0 {
|
||||
return true
|
||||
|
||||
Loading…
Reference in New Issue
Block a user