Add EC APE check #1125

Merged
fyrchik merged 1 commits 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 added 1 commit 2024-05-08 07:24:45 +00:00
Vulncheck / Vulncheck (pull_request) Successful in 3m55s Details
DCO action / DCO (pull_request) Successful in 5m3s Details
Build / Build Components (1.21) (pull_request) Successful in 6m7s Details
Build / Build Components (1.22) (pull_request) Successful in 7m59s Details
Tests and linters / gopls check (pull_request) Successful in 9m29s Details
Tests and linters / Lint (pull_request) Successful in 11m16s Details
Tests and linters / Staticcheck (pull_request) Successful in 11m12s Details
Tests and linters / Tests (1.21) (pull_request) Successful in 17m22s Details
Tests and linters / Tests with -race (pull_request) Successful in 17m29s Details
Tests and linters / Tests (1.22) (pull_request) Successful in 17m43s Details
f4965e92c9
[#9999] objectSvc: Add EC header APE check
Signed-off-by: Dmitrii Stepanov <d.stepanov@yadro.com>
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) {
Collaborator

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 } ```
Poster
Collaborator

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
Collaborator

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
There is no content yet.