Move target initialization for Put
operation to common package #1310
Labels
No labels
P0
P1
P2
P3
badger
frostfs-adm
frostfs-cli
frostfs-ir
frostfs-lens
frostfs-node
good first issue
triage
Infrastructure
blocked
bug
config
discussion
documentation
duplicate
enhancement
go
help wanted
internal
invalid
kludge
observability
perfomance
question
refactoring
wontfix
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#1310
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Patch
method that was introduced in #1307 merges two streams (patches and intact original object payload chunks) into one. The result of patching is saved toFrostFS
by usingPut
.In this case, the save mechanism for
Patch
method must not differ fromPut
. That's whyPatch
currently uses a trick by initializingputStream
usingpkg/service/object/put/streamer.go
and accessing target required forpatcher
initilazation (it recievesObjectWriter
) but this breaks encapsulation (see this discussion) to reach put mechanism consistency.It is required to move target initialization for both
PutStream
andPatch
to one common package and then reuse it:Put
andPatch
Patch
method #1307