Add EC APE check #1125

Merged
fyrchik merged 1 commit from dstepanov-yadro/frostfs-node:feat/ec_ape into master 2024-05-13 07:51:53 +00:00

For operations on EC chunks on container nodes for requests not from container or IR, EC parent headers will be used.

For operations on EC chunks on container nodes for requests not from container or IR, EC parent headers will be used.
dstepanov-yadro force-pushed feat/ec_ape from f4965e92c9 to b3189b5616 2024-05-08 07:26:49 +00:00 Compare
aarifullin reviewed 2024-05-08 08:15:04 +00:00
@ -139,0 +169,4 @@
return parentObj.ToV2().GetHeader()
}
func (c *checkerImpl) currentNodeIsContainerNode(cnrID cid.ID) (bool, error) {
Member

I suppose you have considered this step to avoid extra iterations over local shards (we don't need to iterate over shard if it's not container - it will find nothing). Could you, please, to add explanatory comment before/after

contNode, err := c.currentNodeIsContainerNode(prm.Container)
if err != nil || !contNode {
   return header
}
I suppose you have considered this step to avoid extra iterations over local shards (we don't need to iterate over shard if it's not container - it will find nothing). Could you, please, to add explanatory comment before/after ```go contNode, err := c.currentNodeIsContainerNode(prm.Container) if err != nil || !contNode { return header } ```
Author
Member

The reason is different, but commend added.

The reason is different, but commend added.
aarifullin marked this conversation as resolved
dstepanov-yadro force-pushed feat/ec_ape from b3189b5616 to 766c4fc647 2024-05-08 08:20:23 +00:00 Compare
dstepanov-yadro force-pushed feat/ec_ape from 766c4fc647 to bac5b9db32 2024-05-08 08:21:18 +00:00 Compare
dstepanov-yadro force-pushed feat/ec_ape from bac5b9db32 to 68e0e89a8a 2024-05-08 13:24:47 +00:00 Compare
dstepanov-yadro force-pushed feat/ec_ape from 68e0e89a8a to 0144117cc9 2024-05-08 13:26:13 +00:00 Compare
aarifullin approved these changes 2024-05-13 07:29:09 +00:00
aarifullin left a comment
Member

LGTM

LGTM
fyrchik approved these changes 2024-05-13 07:51:43 +00:00
fyrchik merged commit 0144117cc9 into master 2024-05-13 07:51:53 +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#1125
No description provided.