bugfix/multipart_removing #370

Merged
alexvanin merged 2 commits from dkirillov/frostfs-s3-gw:bugfix/multipart_removing into support/v0.28 2024-04-18 10:14:53 +00:00
Collaborator
There is no content yet.
dkirillov self-assigned this 2024-04-17 11:34:51 +00:00
dkirillov added 2 commits 2024-04-17 11:34:54 +00:00
f26fa6c5c8 [#XX] Fix removing combined object
Port #364

Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
/ DCO (pull_request) Successful in 1m53s Details
/ Builds (1.20) (pull_request) Successful in 2m12s Details
/ Builds (1.21) (pull_request) Successful in 2m0s Details
/ Vulncheck (pull_request) Failing after 2m6s Details
/ Lint (pull_request) Successful in 4m45s Details
/ Tests (1.20) (pull_request) Successful in 2m56s Details
/ Tests (1.21) (pull_request) Successful in 2m47s Details
8fa8dd0166
[#XX] Fix multipart upload size in tree node
Signed-off-by: Denis Kirillov <d.kirillov@yadro.com>
dkirillov force-pushed bugfix/multipart_removing from 8fa8dd0166 to 3f1ebde426 2024-04-17 11:36:01 +00:00 Compare
dkirillov requested review from storage-services-committers 2024-04-17 11:37:24 +00:00
dkirillov requested review from storage-services-developers 2024-04-17 11:37:28 +00:00
alexvanin approved these changes 2024-04-18 06:35:37 +00:00
alexvanin left a comment
Owner

Looks nice.

We should discuss what happens when we pass p.Size to objectPutAndHash function which calls frostfs.CreateObject that sets obj.SetPayloadSize(prm.PayloadSize).
This feels a bit weird when we store multipart link object. Shall we do something with it in v0.30.0 let's see.

Looks nice. We should discuss what happens when we pass `p.Size` to `objectPutAndHash` function which calls `frostfs.CreateObject` that sets `obj.SetPayloadSize(prm.PayloadSize)`. This feels a bit weird when we store multipart link object. Shall we do something with it in v0.30.0 let's see.
alexvanin added this to the v0.28.2 milestone 2024-04-18 06:41:16 +00:00
Poster
Collaborator

It seems storage node doesn't check payload size for client stream. For client cut the check exists but sdk forms proper size when cut is being performed.

Probably @fyrchik can clarify storage node behavior

It seems storage node doesn't check payload size for client stream. For client cut the check exists but sdk forms proper size when cut is being performed. Probably @fyrchik can clarify storage node behavior

Probably @fyrchik can clarify storage node behavior

As we discussed, object put streaming does not use payload size value from header at all, so it's okay to set any values as gateway does. As for client cut, SDK library sets payload size automatically, so user defined value is ignored as well.

> Probably @fyrchik can clarify storage node behavior As we discussed, object put streaming does not use payload size value from header at all, so it's okay to set any values as gateway does. As for client cut, SDK library sets payload size automatically, so user defined value is ignored as well.
alexvanin merged commit 3f1ebde426 into support/v0.28 2024-04-18 10:14:53 +00:00
alexvanin deleted branch bugfix/multipart_removing 2024-04-18 10:14:53 +00:00
Sign in to join this conversation.
No reviewers
TrueCloudLab/storage-services-developers
No Milestone
No Assignees
2 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-s3-gw#370
There is no content yet.