GET and HEAD answer "object not found" when the nodes holding the object cannot be reached
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
この issue はまだ評価されていません。
説明
Expected Behavior
object not found (2049) means the object does not exist. A node that
could not ask the nodes which may hold the object says that it failed to
find out, with a status clients retry.
Current Behavior
A failed call to a remote node is recorded as ErrObjectNotFound,
whatever the failure was
(get/remote.go#L30-L35),
and the forwarding path returns the same when it reached no node at all
(get/forward.go#L71). So a
node that holds no replica itself and cannot reach those that do answers
code = 2049 message = object not found. The S3 gateway passes it on as
404 NoSuchKey.
0.58.2, four storage nodes, REP 2, 24 objects, 11 of them with no
replica on s01. Traffic between s01 and the other three storage nodes was
dropped; clients still reached s01:
| Answers for the 11 objects | |
|---|---|
object head through s01, before |
11 headers |
object head through s01, cut off |
8 object not found, 3 timeouts of the CLI |
object get through s01, cut off |
11 object not found |
object head through s02, at the same time |
11 headers |
object head through s01, network back |
11 headers |
$ neofs-cli object head -r s01:8080 --cid 6XR2jctpN4ZzBP6UhKra26T6WsGDyT6v6kBX68tuQCdF --oid ...
Error: rpc error: read object header via client: status: code = 2049 message = object not found
Possible Solution
Answer "not found" only when every node that may hold the object said so
(or was asked and has no copy). If any of them could not be asked, return
the error of that call.
Steps to Reproduce (for bugs)
- Four storage nodes, a container with
REP 2, some objects. - Pick an object that node A does not hold:
neofs-cli object head --ttl 1 -r A:8080 ...fails for it. - Drop traffic between A and the other storage nodes (iptables in A's network namespace), keeping the client's access to A.
neofs-cli object head -r A:8080 ...for that object.
Context
Found with neofs-bench
(fault scenario, isolate-node). A client that is told "not found"
does not retry and may act on it: an S3 sync tool uploads the object
again, an application treats the key as free.
Regression
Not known.
Your Environment
- Version used: 0.58.2 (also 0.58.1)
- Server setup and configuration: 4 storage nodes with 2 shards each, 1 inner ring node, in Docker on one machine; also seen on six cloud servers, one node each
- Operating System and version (
uname -a): Linux 6.8.0 aarch64 (Ubuntu 24.04), Linux 6.12 x86_64 (Debian 13)
- 主要言語
- 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
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
projectdiscovery/cdncheck#554 ·
メンテナーはふだん 1 日以内に返信
-
triage needed
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
OpenSlides/openslides-go#342 ·
メンテナーはふだん 4 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100