shard: ReviveObject does not update shard metrics
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Go
- スター
- 37
- フォーク
- 56
- 平均マージ
- 1日 21時間
- マージ済み PR(30日)
- 46
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
nspcc-dev/neofs-node のほかの issue
-
bug hal:proposed neofs-storage
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
nspcc-dev/neofs-node#4325 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
hal:proposed I4 neofs-storage S3 security U4
難易度 2/5 1〜3時間 初心者へのやさしさ 69/100
nspcc-dev/neofs-node#4280 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
nspcc-dev/neofs-node#4339 ·
メンテナーはふだん 1 日以内に返信
-
enhancement I3 neofs-storage performance S3 U3
難易度 5/5 1週間以上 初心者へのやさしさ 20/100
nspcc-dev/neofs-node#4337 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
-
bug neofs-storage
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
nspcc-dev/neofs-node#4336 ·
メンテナーはふだん 1 日以内に返信
nspcc-dev/neofs-node の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
automated documentation maintenance
難易度 1/5 1〜3時間 初心者へのやさしさ 75/100
github/gh-aw-mcpg#16717 ·
メンテナーはふだん 1 日以内に返信
-
Docs: Recording rules pages don't say what happens to a recorded metric when its rule is deletedオープンinternal
難易度 1/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
jesseduffield/lazygit#6229 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
prometheus/prometheus#20482 ·
メンテナーはふだん 2 日以内に返信