Add response for partial object placement #33

Open
opened 2023-08-31 15:19:28 +00:00 by alexvanin · 1 comment
Owner

FrostFS client sometimes can't store all required copies when some storage nodes are unavailable in container (e.g. in maintenance mode). In this case internal error is returned with incomplete object put message. However this does not mean that put operation was completely failed. Some nodes will store object, just less acks received than expected.

Describe the solution you'd like

Introduce new error status when operation was partially successful. Add details with the number of successful acks in status details. In some cases clients will be just fine with partial success.

Describe alternatives you've considered

Keep it as it is and use copies number parameter more often.

Additional context

Related to TrueCloudLab/frostfs-node#594

## Is your feature request related to a problem? Please describe. FrostFS client sometimes can't store all required copies when some storage nodes are unavailable in container (e.g. in maintenance mode). In this case internal error is returned with `incomplete object put` message. However this does not mean that put operation was completely failed. Some nodes will store object, just less acks received than expected. ## Describe the solution you'd like Introduce new error status when operation was partially successful. Add details with the number of successful acks in status details. In some cases clients will be just fine with partial success. ## Describe alternatives you've considered Keep it as it is and use copies number parameter more often. ## Additional context Related to https://git.frostfs.info/TrueCloudLab/frostfs-node/issues/594
alexvanin added the
triage
label 2023-08-31 15:19:28 +00:00
Owner

The problem is that every failed PUT is "incomplete" in some sense.
I suggest reserving this status for cases when there was at least 1 or at least 1 non-local success.

The problem is that every failed PUT is "incomplete" in some sense. I suggest reserving this status for cases when there was at least 1 or at least 1 non-local success.
realloc added this to the v2.15 - Karpinsky Ice Cap milestone 2023-09-02 15:57:40 +00:00
realloc modified the milestone from v2.15 - Karpinsky Ice Cap to v2.17 - Zemu Glacier 2023-09-04 10:43:37 +00:00
fyrchik was assigned by realloc 2023-09-04 10:43:45 +00:00
realloc added
enhancement
and removed
triage
labels 2023-09-04 10:44:05 +00:00
fyrchik was unassigned by realloc 2023-09-04 10:44:42 +00:00
alexvanin was assigned by realloc 2023-09-04 10:44:42 +00:00
realloc added a new dependency 2023-09-04 10:55:41 +00:00
Sign in to join this conversation.
No project
No assignees
2 participants
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Reference: TrueCloudLab/frostfs-api#33
No description provided.