Multiple copy numbers #221
No reviewers
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 milestone
No project
No assignees
4 participants
Notifications
Due date
Dependencies
No dependencies set.
Reference: TrueCloudLab/frostfs-node#221
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/multiple-copies-number"
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?
Blocked by TrueCloudLab/frostfs-sdk-go#46.
Implementation might have to be changed according to TrueCloudLab/frostfs-sdk-go#45 discussion.
3648ff99b4
to85430af1ac
WIP: Multiple copy numbersto Multiple copy numbers85430af1ac
to0720550a74
@ -144,3 +144,3 @@
var stream *rpc.PutRequestWriter
err = c.RawForAddress(addr, func(cli *rawclient.Client) error {
err = c.RawForAddress(context.Background(), addr, func(cli *rawclient.Client) error {
I think
context.TODO()
is better.context.Background()
means that we don't need parent context. But for this case, in the bright future, we will use the parent context.agree, fixed
0720550a74
to90ac80e433
@ -144,3 +144,3 @@
var stream *rpc.PutRequestWriter
err = c.RawForAddress(addr, func(cli *rawclient.Client) error {
err = c.RawForAddress(context.TODO(), addr, func(cli *rawclient.Client) error {
Do we have an issue?
that line problem somehow disappeared (well, hehe, thanks to @dstepanov-yadro)
@ -87,0 +88,4 @@
// backward compatibility for scalar `copies_number`
if len(cfg.copyNumbers) == 1 {
cn := cfg.copyNumbers[0]
cfg.flatSuccess = &cn
Can't we just take address of the first element directly?
usually try not to do that but it looks safe here, fixed
@ -94,6 +101,11 @@ func NewTraverser(opts ...Option) (*Traverser, error) {
for i := 0; i < replNum; i++ {
if cfg.trackCopies {
if len(cfg.copyNumbers) > i {
What about creating default vector with
ReplicaNumberByIndex
elements and removing special case here?hope i got you right and fixed but double check that, please
@carpawell rebase, please
90ac80e433
to604ca51264
object put
#351