Fix head --raw request handling for EC #1271

Merged
dstepanov-yadro merged 1 commit from dstepanov-yadro/frostfs-node:fix/ec_head_raw into master 2024-09-04 19:51:10 +00:00

Now head --raw requests can be processed not only on container node with request forwarding to container node. At the same time, such requests are now executed sequentially, as it is much easier to implement.

Also fix extra bug in EC assemble.

Now `head --raw` requests can be processed not only on container node with request forwarding to container node. At the same time, such requests are now executed sequentially, as it is much easier to implement. Also fix extra bug in EC assemble.
dstepanov-yadro force-pushed fix/ec_head_raw from 88f6186104 to 7fd7961dfa 2024-07-24 05:53:21 +00:00 Compare
dstepanov-yadro reviewed 2024-07-24 05:56:43 +00:00
@ -294,3 +238,3 @@
}
var addr oid.Address
addr.SetContainer(addr.Container())
addr.SetContainer(a.addr.Container())
Author
Member

Shame on me

Shame on me
Owner

It seems like another bug, what could happen here?

It seems like another bug, what could happen here?
Author
Member

The local chunk was never taken in the assembly of the object.

The local chunk was never taken in the assembly of the object.
dstepanov-yadro reviewed 2024-07-24 05:59:11 +00:00
@ -61,3 +69,4 @@
case errors.As(err, &errECInfo):
r.status = statusEC
r.err = r.infoEC.addRemote(string(info.PublicKey()), errECInfo.ECInfo())
if r.isRaw() {
Author
Member

It can be written more simply, but it's clearer this way.

It can be written more simply, but it's clearer this way.
Owner

questionable, but ok

questionable, but ok
dstepanov-yadro requested review from storage-core-committers 2024-07-24 06:12:01 +00:00
dstepanov-yadro requested review from storage-core-developers 2024-07-24 06:12:02 +00:00
fyrchik approved these changes 2024-07-24 07:04:14 +00:00
aarifullin approved these changes 2024-07-24 07:21:27 +00:00
aarifullin left a comment
Member

OK with me

OK with me
dstepanov-yadro merged commit 7fd7961dfa into master 2024-07-24 07:27:18 +00:00
dstepanov-yadro deleted branch fix/ec_head_raw 2024-07-24 07:28:44 +00:00
Sign in to join this conversation.
No reviewers
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-node#1271
No description provided.