TieredEventStore reports existing streams as missing
メンテナーはふだん 7 日以内に返信
評価
調査の方向性
The issue names TieredEventStoreTests.cs in src/Core/test/Eventuous.Tests.Application and the TieredEventStore implementation. Start by reviewing the committed change on fix/issue-609-tiered-store and its 15 tiered-store tests; the issue reports that all 36 application tests pass. The fix is already committed locally, so this work is underway and is not a suitable first contribution.
索引モデルが issue の本文から書いたものです。
説明
Related test issue
Discovered while implementing #609 — tiered event-store coverage.
Problem
TieredEventStore.StreamExists effectively requires a stream to exist in both the hot and archive stores. Streams that exist in only one tier are incorrectly reported as missing. Existence checks also fail to account for an archive exposed only through IEventReader, which the constructor accepts.
This makes the existence result inconsistent with readable data: an archived stream can still be read after hot-store deletion, yet StreamExists returns false.
Reproduction
- Create separate hot and archive
InMemoryEventStoreinstances. - Append events to a stream in only the hot store.
- Construct
TieredEventStore(hot, archive)and callStreamExistsfor that stream. - Repeat with events in only the archive store.
Actual: both single-tier cases return false.
Expected: a stream exists if either tier contains it.
| Hot tier | Archive tier | Expected result |
|---|---|---|
| Missing | Missing | false |
| Present | Missing | true |
| Missing | Present | true |
| Present | Present | true |
Fix and acceptance criteria
- Return
truewhen the hot store contains the stream, without requiring an archive lookup. - Otherwise check archive existence directly when it implements
IEventStore. - For an archive implementing only
IEventReader, establish existence with a bounded read according to that interface's missing-stream contract. - A successful empty read represents an existing empty stream;
StreamNotFoundrepresents absence. - Archive failures and cancellation propagate rather than being converted into
false. - Dispose the archive enumerator and forward cancellation to the read.
- Deleting the hot copy does not make an existing archive copy disappear from the existence result.
- Preserve existing cross-tier read behavior and hot-only append, truncate, and delete behavior.
Existing regression tests and implementation
TieredEventStoreTests.cs in src/Core/test/Eventuous.Tests.Application reproduced five failing cases before the fix:
- Hot-only stream existence.
- Archive-only stream existence.
- An existing stream in an archive exposed only as
IEventReader. - An empty existing stream in a read-only archive.
- Existence after deleting the hot copy while retaining the archive copy.
Additional tests cover archive failures, cancellation, an unavailable archive when the hot stream exists, bounded reads across tiers, and hot-only mutations.
An implementation is already committed locally on fix/issue-609-tiered-store, commit 1639f36c. All 36 tests in the application test project pass on .NET 10, including 15 tiered-store cases. The branch has not been published or merged as part of this work.
- 主要言語
- C#
- スター
- 512
- フォーク
- 99
- 平均マージ
- 5日 6時間
- マージ済み PR(30日)
- 5
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Eventuous/eventuous のほかの issue
-
MongoDB integration tests fail on newer GitHub Actions runner kernels対応中かも @nmummau が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
Eventuous/eventuous#626 · コメント 2 件 ·
メンテナーはふだん 7 日以内に返信
-
`dotnet format style --verify-no-changes` fails with naming violations and unnecessary imports対応中かも @nmummau が 2 日前に担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 80/100
Eventuous/eventuous#624 · コメント 1 件 ·
メンテナーはふだん 7 日以内に返信
-
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
Eventuous/eventuous#627 · コメント 1 件 ·
メンテナーはふだん 7 日以内に返信
-
SQL Server: `append_events` does not need the `@inserted` table variable対応中かも @nmummau が 8 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 20/100
Eventuous/eventuous#619 · コメント 1 件 ·
メンテナーはふだん 7 日以内に返信
-
SQL Server: stream reads do one key lookup per event, and `IDX_EventsStream` duplicates `UQ_StreamIdAndStreamPosition`対応中かも @nmummau が 8 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 18/100
Eventuous/eventuous#618 · コメント 1 件 ·
メンテナーはふだん 7 日以内に返信
Eventuous/eventuous の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
bug priority: P2
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
IridiumIO/CompactGUI#699 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 73/100
メンテナーはふだん 1 日以内に返信
-
enhancement
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信