node: Implement Range\RangeHash requests for EC object #1112

Merged
fyrchik merged 5 commits from acid-ant/frostfs-node:feature/ec-range-hash into master 2024-05-07 12:32:30 +00:00
Collaborator

Signed-off-by: Anton Nikiforov an.nikiforov@yadro.com

Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
acid-ant added 1 commit 2024-04-27 20:11:35 +00:00
DCO action / DCO (pull_request) Failing after 1m10s Details
Tests and linters / Tests with -race (pull_request) Failing after 1m27s Details
Tests and linters / Tests (1.22) (pull_request) Failing after 2m8s Details
Tests and linters / Tests (1.21) (pull_request) Failing after 2m13s Details
Tests and linters / Lint (pull_request) Failing after 2m40s Details
Tests and linters / Staticcheck (pull_request) Failing after 2m33s Details
Tests and linters / gopls check (pull_request) Failing after 4m28s Details
Build / Build Components (1.21) (pull_request) Failing after 5m42s Details
Build / Build Components (1.22) (pull_request) Failing after 5m50s Details
Vulncheck / Vulncheck (pull_request) Failing after 6m2s Details
c9103ddcc2
[#xx] node: Implement `Range\RangeHash` requests for EC object
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
acid-ant force-pushed feature/ec-range-hash from c9103ddcc2 to ecf03fc548 2024-04-27 20:12:14 +00:00 Compare
acid-ant changed title from node: Implement `Range\RangeHash` requests for EC object to WIP: node: Implement `Range\RangeHash` requests for EC object 2024-04-30 09:47:10 +00:00
acid-ant force-pushed feature/ec-range-hash from ecf03fc548 to 960b025aaa 2024-05-02 11:37:58 +00:00 Compare
acid-ant force-pushed feature/ec-range-hash from 960b025aaa to f08b453247 2024-05-02 12:04:25 +00:00 Compare
acid-ant added 1 commit 2024-05-02 15:17:35 +00:00
DCO action / DCO (pull_request) Successful in 2m30s Details
Build / Build Components (1.21) (pull_request) Successful in 3m19s Details
Vulncheck / Vulncheck (pull_request) Successful in 3m32s Details
Build / Build Components (1.22) (pull_request) Successful in 5m3s Details
Tests and linters / Staticcheck (pull_request) Successful in 3m41s Details
Tests and linters / gopls check (pull_request) Successful in 4m4s Details
Tests and linters / Lint (pull_request) Successful in 4m40s Details
Tests and linters / Tests (1.21) (pull_request) Successful in 7m45s Details
Tests and linters / Tests with -race (pull_request) Successful in 7m56s Details
Tests and linters / Tests (1.22) (pull_request) Successful in 8m9s Details
6958163277
[#1112] node: Fix panic when setting metric `request_duration_seconds`
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
acid-ant requested review from storage-core-committers 2024-05-02 16:45:59 +00:00
acid-ant requested review from storage-core-developers 2024-05-02 16:45:59 +00:00
acid-ant changed title from WIP: node: Implement `Range\RangeHash` requests for EC object to node: Implement `Range\RangeHash` requests for EC object 2024-05-02 16:46:05 +00:00
acid-ant reviewed 2024-05-02 16:46:44 +00:00
acid-ant force-pushed feature/ec-range-hash from 6958163277 to bba0bd8161 2024-05-02 17:26:33 +00:00 Compare
dstepanov-yadro reviewed 2024-05-03 07:42:52 +00:00
@ -75,0 +82,4 @@
if err == nil {
err = writer.WriteChunk(ctx, obj.Payload())
if err != nil {
return nil, err

Looks too complex:

if err == nil {
    if a.rng != nil {
...
    } else {
        if err == nil {
            if err != nil {
            }
        }
    }
}

No need to fix. I will see if it is possible to make linter stricker.

Looks too complex: ``` if err == nil { if a.rng != nil { ... } else { if err == nil { if err != nil { } } } } ``` No need to fix. I will see if it is possible to make linter stricker.
Poster
Collaborator

Refactored a bit. Now it is possible to optimize range request separately.

Refactored a bit. Now it is possible to optimize range request separately.
dstepanov-yadro approved these changes 2024-05-03 07:42:58 +00:00
fyrchik reviewed 2024-05-03 10:03:57 +00:00
@ -17,3 +17,3 @@
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer
exclude: "(.key|.svg)$"
exclude: "(.key|.svg|.puml)$"

puml is ok, it is not autogenerated, why did you add it?

puml is ok, it is not autogenerated, why did you add it?
Poster
Collaborator

It is boring to fix the end of file issue again and again. Reverted this change.

It is boring to fix the end of file issue again and again. Reverted this change.
https://git.frostfs.info/TrueCloudLab/frostfs-node/issues/1118
acid-ant force-pushed feature/ec-range-hash from bba0bd8161 to af0908808a 2024-05-03 12:32:43 +00:00 Compare
fyrchik reviewed 2024-05-06 05:27:30 +00:00
fyrchik left a comment
Owner

We have recently added an extensive test suite for get-range #1078
Could you extend it for erasure-coded objects?

We have recently added an extensive test suite for get-range #1078 Could you extend it for erasure-coded objects?
acid-ant force-pushed feature/ec-range-hash from af0908808a to 556defe0bf 2024-05-07 09:45:49 +00:00 Compare
acid-ant force-pushed feature/ec-range-hash from 556defe0bf to e34426055e 2024-05-07 09:46:32 +00:00 Compare
fyrchik approved these changes 2024-05-07 10:00:21 +00:00
Poster
Collaborator

Cherry-picked changes from 0.38 with tests for range. Added test for range request for EC object.

Cherry-picked changes from 0.38 with tests for range. Added test for `range` request for EC object.
acid-ant added 1 commit 2024-05-07 11:23:54 +00:00
DCO action / DCO (pull_request) Successful in 1m51s Details
Build / Build Components (1.21) (pull_request) Successful in 3m27s Details
Vulncheck / Vulncheck (pull_request) Successful in 2m52s Details
Build / Build Components (1.22) (pull_request) Successful in 3m36s Details
Tests and linters / Staticcheck (pull_request) Successful in 4m35s Details
Tests and linters / Lint (pull_request) Successful in 6m53s Details
Tests and linters / gopls check (pull_request) Successful in 7m26s Details
Tests and linters / Tests (1.21) (pull_request) Successful in 12m14s Details
Tests and linters / Tests with -race (pull_request) Successful in 12m23s Details
Tests and linters / Tests (1.22) (pull_request) Successful in 12m37s Details
3ee0eb9ff1
[#1112] node: Fixe race warning for `GetObjectAndWritePayload`
Signed-off-by: Anton Nikiforov <an.nikiforov@yadro.com>
acid-ant force-pushed feature/ec-range-hash from 3ee0eb9ff1 to c0cdba21e4 2024-05-07 11:33:31 +00:00 Compare
fyrchik approved these changes 2024-05-07 11:37:46 +00:00
@ -13,3 +13,3 @@
@enduml
@enduml

Should be fixed in master, could you rebase?

Should be fixed in master, could you rebase?
Poster
Collaborator

Done.

Done.
acid-ant force-pushed feature/ec-range-hash from c0cdba21e4 to fe2c1c926f 2024-05-07 11:47:35 +00:00 Compare
fyrchik merged commit fe2c1c926f into master 2024-05-07 12:32:30 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-core-developers
No Milestone
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#1112
There is no content yet.