[#129] client: Do not override error status WriteObject() #130

Merged
fyrchik merged 1 commit from fyrchik/frostfs-sdk-go:client-fix-transformer into master 2023-07-28 07:34:56 +00:00
Owner

Fix #129.

Here is a scenario:

  1. resolveFrostFSErrors is false.
  2. The first object part was not written, which was signified in status.
  3. The second part was written correctly.

Client now thinks that the object is written even though it was not.
In theory we could also return only status, but client-side splitting
is not a single RPC, so it makes sense.

Signed-off-by: Evgenii Stratonikov e.stratonikov@yadro.com

Fix #129. Here is a scenario: 1. `resolveFrostFSErrors` is false. 2. The first object part was not written, which was signified in status. 3. The second part was written correctly. Client now thinks that the object is written even though it was not. In theory we could also return only status, but client-side splitting is not a single RPC, so it makes sense. Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
fyrchik added 1 commit 2023-07-26 11:52:41 +00:00
[#129] client: Do not override error status WriteObject()
All checks were successful
/ DCO (pull_request) Successful in 1m17s
/ Lint (pull_request) Successful in 2m36s
/ Tests (1.19) (pull_request) Successful in 2m14s
/ Tests (1.20) (pull_request) Successful in 6m0s
ecb1fef78c
Here is a scenario:
1. `resolveFrostFSErrors` is false.
2. The first object part was not written, which was signified in status.
3. The second part was written correctly.

Client now thinks that the object is written even though it was not.
In theory we could also return only status, but client-side splitting
is not a single RPC, so it makes sense.

Signed-off-by: Evgenii Stratonikov <e.stratonikov@yadro.com>
fyrchik requested review from storage-core-committers 2023-07-26 11:52:49 +00:00
fyrchik requested review from storage-core-developers 2023-07-26 11:52:49 +00:00
fyrchik requested review from storage-services-committers 2023-07-26 12:23:53 +00:00
fyrchik requested review from storage-services-developers 2023-07-26 12:23:53 +00:00
dstepanov-yadro approved these changes 2023-07-26 14:11:30 +00:00
aarifullin approved these changes 2023-07-28 07:20:53 +00:00
fyrchik merged commit ecb1fef78c into master 2023-07-28 07:34:56 +00:00
fyrchik deleted branch client-fix-transformer 2023-07-28 07:34:57 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-services-committers
TrueCloudLab/storage-services-developers
No milestone
No project
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-sdk-go#130
No description provided.