[Darwin] Read() does not always return when closing the reader
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 38/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- go
調査の方向性
fifo_test.go の TestFifoCloseWhileReadingAndWriting から始め、macOS と Linux で make test を実行して差異を再現します。writer が開いているときの FIFO reader のクローズと保留中の Read の動作を追跡します。両方のプラットフォームで reader をクローズした後、テストが一貫して期待されるエラーを返せば完了です。
索引モデルが issue の本文から書いたものです。
説明
I'm seeing different behaviours on MacOS and Linux, when closing a reader.
When running make test with https://github.com/containerd/fifo/pull/42 applied, the TestFifoCloseWhileReadingAndWriting fails on MacOS but passes on Linux.
On MacOS, I'm seeing that if I open a writer on a FIFO, closing the reader won't unblock a pending Read() and a Write() from the writer will be received by the reader (After we close the reader):
=== RUN TestFifoCloseWhileReadingAndWriting
fifo_test.go:437:
Error Trace: fifo_test.go:437
Error: An error is expected but got nil.
Test: TestFifoCloseWhileReadingAndWriting
fifo_test.go:441: Read should not succeed
If there are no writers for the FIFO, closing the reader works as expected on both Linux and MacOS, i.e. the pending Read() returns the expected error (ErrReadClosed).
- 主要言語
- Go
- スター
- 87
- フォーク
- 33
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
containerd/fifo のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 50/100
containerd/fifo#67 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
containerd/fifo#56 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 25/100
containerd/fifo#18 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
containerd/fifo#5 · コメント 1 件 ·
containerd/fifo の issue をすべて見る
似ている issue
-
ready-for-agent
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
jordansmall/spindrift#7895 ·
メンテナーはふだん 1 日以内に返信
-
documentation priority: medium skill: intermediate status: ready for dev
難易度 2/5 1〜3時間 初心者へのやさしさ 83/100
hyperledger-labs/fabric-smart-client#2830 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 64/100
メンテナーはふだん 1 日以内に返信
-
P3 tech debt
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
メンテナーはふだん 1 日以内に返信