Optimistic history oracle retains source rows from an aborted batch
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 3/5
- 見積もり時間
- 1〜2日
- 初心者へのやさしさ
- 72/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- typescript
- 領域
- testing-qa
調査の方向性
Start with collection-state-retention-oracle.property.test.ts and trace how the oracle driver handles beginSourceBatch() and aborts for sourceKeys and sourceRows. Run the saved replay using the provided TANSTACK_DB_ORACLE_* values, then add the focused oracle-driver comparison described in the issue. Done means a partial update after abort behaves like one after a committed delete and the replay passes.
索引モデルが issue の本文から書いたものです。
説明
The optimistic history oracle can report a false production failure after an aborted open source batch. Its driver restores sourceKeys on abort, but beginSourceBatch() has also changed sourceRows, and the abort path does not restore that ledger.
A minimal legal history starts with row 2 at c: 0:
- Open a source batch that deletes row 2.
- Abort that batch.
- Apply a partial update for row 2 whose input has
c: -1.
After the abort, the source still holds row 2 at c: 0. The partial-update driver should omit c, so the update should preserve c: 0. Instead, its stale sourceRows ledger says row 2 is absent. The driver writes c: -1, and the independent model correctly rejects the resulting publication.
This reproduces on clean origin/main at 9e8ed997885fb46ac98ec85906f4ca4f662e7cce in collection-state-retention-oracle.property.test.ts. The saved replay is TANSTACK_DB_ORACLE_SEED=-1161486883, TANSTACK_DB_ORACLE_PROPERTY=collection-state.optimistic-history-partial, and TANSTACK_DB_ORACLE_PATH=93:3:2:6:8:13:12:14:14:15:10:10:10:10:11:10:10:10:10:10:10:10.
Restore both source ledgers when an open batch aborts. A focused oracle-driver test should then compare a partial update after abort with one after a committed delete.
- 主要言語
- TypeScript
- スター
- 3.9k
- フォーク
- 272
- 平均マージ
- 1日 1時間
- マージ済み PR(30日)
- 210
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
TanStack/db のほかの issue
-
難易度 5/5 1週間以上 初心者へのやさしさ 5/100
メンテナーはふだん 1 日以内に返信
-
browser-db-sqlite-persistence: option to load the wa-sqlite WASM by URL instead of inlined base64オープン
難易度 4/5 3〜5日 初心者へのやさしさ 35/100
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
メンテナーはふだん 1 日以内に返信
-
electric-db-collection: on-demand + persistence fails after relaunch with "Snapshot requests are not supported in full mode"対応中かも @KyleAMathews が 4 日前に担当しました。 オープン
難易度 3/5 1〜2日 初心者へのやさしさ 68/100
TanStack/db#2056 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
メンテナーはふだん 1 日以内に返信
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 72/100
cline/mcp-marketplace#2932 ·
-
community first-timers-only good first issue hacktoberfest help wanted low hanging fruit up-for-grabs
難易度 1/5 1時間未満 初心者へのやさしさ 82/100
lingdojo/kana-dojo#32188 · コメント 1 件 · リアクション 5 件 ·
メンテナーはふだん 1 日以内に返信
-
triage
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
Portkey-AI/gateway#1844 ·
メンテナーはふだん 1 日以内に返信
-
needs triage
難易度 2/5 1〜3時間 初心者へのやさしさ 61/100
rjsf-team/react-jsonschema-form#5495 ·
メンテナーはふだん 2 日以内に返信