PUT stores parts of a duplicate EC rule on the nodes of the first identical rule
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 65/100
- Tipo di issue
- Bug
- Chiarezza
- Specificata chiaramente
- Stato di attività
- Attiva
- Stack tecnologico
- go
- Ambito
- backend, distributed-systems
Direzione di ricerca
Start by reading pkg/services/object/put/distributed.go, especially saveObject and handleECRule, and compare how the duplicate EC rule loop uses rule indexes and node-list positions. Check the surrounding tests for EC placement with duplicate rules and add coverage for different selectors and PreferLocal; done means each rule’s parts go to its own nodes with the correct rule index and placement limits.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Expected Behavior
When a container policy has two identical EC rules (same data/parity numbers, e.g. with different selectors), PUT encodes the payload once and stores the parts of rule j on the node list of rule j.
Current Behavior
The loop over duplicate rules in saveObject passes the loop position i of the first rule as the node-list index (distributed.go#L520):
fin, err := handleECRule(i, j, payloadParts, ecRules[ecRuleIdx])
handleECRule uses that argument as objNodeLists[ruleIdx] (L469), so the parts of rule j (with RuleIndex = j in their headers) go to the nodes of the first identical rule. Before the refactoring in 50ed59da4 ("sn/object: Merge REP and EC rule processing") the same loop used nodeLists[j]:
if err := t.applyECRule(signer, obj, j, payloadParts, nodeLists[j]); err != nil {
so this is a regression of that commit. With an initial placement policy and PreferLocal the argument is also used for sumLimitsSinceRule(ruleIdx+1), which expects a position in ruleOrder, not a rule index; the first call at L508 passes ruleIdx there as well.
Possible Solution
Pass len(repRules)+j as the node-list index for the duplicate rule, and pass positions and rule indexes to handleECRule separately.
Context
Found by code reading while analysing #4331. Not reproduced by a test.
Regression
Yes, 50ed59da4.
- Lingua principale
- Go
- Stelle
- 37
- Fork
- 56
- Merge medio
- 1g 18h
- PR unite (30g)
- 42
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nspcc-dev/neofs-node
-
bug hal:proposed neofs-storage
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
nspcc-dev/neofs-node#4325 · 3 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
nspcc-dev/neofs-node#4311 ·
I maintainer di solito rispondono entro 1 giorno
-
Check alpha scope in IRApertahal:proposed I4 neofs-storage S3 security U4
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
nspcc-dev/neofs-node#4280 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
-
bug neofs-storage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
nspcc-dev/neofs-node#4333 ·
I maintainer di solito rispondono entro 1 giorno
-
bug hal:proposed neofs-storage
Difficoltà 3/5 1-2 giorni Idoneità per principianti 68/100
nspcc-dev/neofs-node#4331 · 2 commenti ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di nspcc-dev/neofs-node
Issue simili
-
Pin and verify Security Insights schema in lintinsights targetForse già presa @imshubham22apr-gif l’ha presa 5 giorni fa. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
gemaraproj/gemara#618 ·
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 64/100
a2aproject/a2a-go#597 ·
I maintainer di solito rispondono entro 1 giorno
-
scopes: GetAllowedTopics, GetProtectedTopics, and GetScopedTopics include empty topic names and do not trim whitespace charactersForse già presa @patelshivani2283-lab l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 1 giorno
-
area/networking kind/bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 69/100
siderolabs/talos#14972 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 72/100
I maintainer di solito rispondono entro 1 giorno