Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Optimistic history oracle retains source rows from an aborted batch

オープン
#2,063 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 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:

  1. Open a source batch that deletes row 2.
  2. Abort that batch.
  3. 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

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

TanStack/db のほかの issue

TanStack/db の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。