Correctly process some logical errors #211

Merged
fyrchik merged 2 commits from fyrchik/frostfs-node:handle-logical-errors into master 2023-04-05 11:10:40 +00:00
  1. Directory creation can fail with ENOSPC, consider it logical.
  2. If shard is in the degraded mode, there is no need to consult pilorama.
1. Directory creation can fail with ENOSPC, consider it logical. 2. If shard is in the degraded mode, there is no need to consult pilorama.
fyrchik force-pushed handle-logical-errors from 0ebdcdfe65 to 60057f1d68 2023-04-05 07:50:50 +00:00 Compare
dstepanov-yadro reviewed 2023-04-05 07:53:28 +00:00
@ -62,2 +71,4 @@
return nil, ErrPiloramaDisabled
}
s.m.RLock()

lock will be held for pilorama.TreeGetByPath call. Is it ok?

Same for other calls.

lock will be held for ```pilorama.TreeGetByPath``` call. Is it ok? Same for other calls.
Poster
Owner

Yes, basically what we do here is to allow operations to finish before other, possibly disruptive, operations such as SetMode take place.

Yes, basically what we do here is to allow operations to finish before other, possibly disruptive, operations such as `SetMode` take place.
dstepanov-yadro marked this conversation as resolved
dstepanov-yadro approved these changes 2023-04-05 08:05:42 +00:00
Collaborator

Typo in commit message the shard it not

Typo in commit message `the shard it not`
acid-ant approved these changes 2023-04-05 08:36:33 +00:00
fyrchik force-pushed handle-logical-errors from 60057f1d68 to 731979a482 2023-04-05 11:02:57 +00:00 Compare
fyrchik merged commit 9098d0eec0 into master 2023-04-05 11:10:40 +00:00
fyrchik deleted branch handle-logical-errors 2023-04-05 11:10:40 +00:00
Sign in to join this conversation.
No reviewers
No Milestone
No Assignees
3 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: TrueCloudLab/frostfs-node#211
There is no content yet.