shard: ReviveObject does not update shard metrics
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- Medio día
- Aptitud para principiantes
- 45/100
Línea de trabajo
Start in pkg/local_object_storage/shard/revive.go at Shard.ReviveObject, then read metabase.ReviveObject in pkg/local_object_storage/metabase/revive.go around the gc counter decrement and reviveCounters. Compare with how deleteObjs applies a CountersDiff to the shard gauges. Done when a revive updates the object_counter, engine_payload_size and container_size metrics to match the metabase counters, with a test covering it.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Current Behavior
Shard.ReviveObject (shard/revive.go#L22) calls metabase.ReviveObject. That call changes the metabase counters: gc -1 at metabase/revive.go#L125, plus phy/root/payload through reviveCounters. It returns only a ReviveStatus and no CountersDiff, so the shard never adjusts its gauges. After a revive, neofs_node_object_counter{type="gc"} stays one too high for good, because the mark is removed and nothing will ever decrement it. neofs_node_engine_payload_size and container_size stay low by the object's payload, so a later delete pushes them down further.
Expected Behavior
The gauges follow the metabase counters through a revive, the same way they do through put, delete and mark.
Possible Solution
Have metabase.ReviveObject return the CountersDiff it applies, and apply it in Shard.ReviveObject like deleteObjs does.
Context
This can only happen through the control service (object revive). Found while analysing #4308.
- Lenguaje dominante
- Go
- Estrellas
- 37
- Forks
- 56
- Merge medio
- 1 d 21 h
- PR fusionados (30 d)
- 46
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de nspcc-dev/neofs-node
-
bug hal:proposed neofs-storage
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
nspcc-dev/neofs-node#4325 · 3 comentarios ·
Los mantenedores suelen responder en 1 día
-
Check alpha scope in IRAbiertohal:proposed I4 neofs-storage S3 security U4
Dificultad 2/5 1-3 horas Aptitud para principiantes 69/100
nspcc-dev/neofs-node#4280 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
nspcc-dev/neofs-node#4339 ·
Los mantenedores suelen responder en 1 día
-
enhancement I3 neofs-storage performance S3 U3
Dificultad 5/5 Más de una semana Aptitud para principiantes 20/100
nspcc-dev/neofs-node#4337 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
bug neofs-storage
Dificultad 4/5 3-5 días Aptitud para principiantes 45/100
nspcc-dev/neofs-node#4336 ·
Los mantenedores suelen responder en 1 día
Todos los issues de nspcc-dev/neofs-node
Issues similares
-
Add iterate GmbH domains to a dedicated list and include it in company and developer categoriesAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
v2fly/domain-list-community#4307 ·
Los mantenedores suelen responder en 1 día
-
notify: voice_queue rows are deleted only at startup, so a hub that stays up grows it without boundAbierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
mattabate/life-distributable#232 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 64/100
projectdiscovery/cdncheck#554 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
openbao/openbao-plugins#170 ·
Los mantenedores suelen responder en 1 día