A symbol-stage re-chunk leaves callers that sort before a new definition declined
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 45/100
調査の方向性
Read ingest_pass._maybe_rechunk, _rechunk_batch in reconcile.heal, and the edge-stage inputs in server/code/domain/extract/extractor_stamp.py; trace how batches change the name table and how dependents are normally re-resolved. Check existing tests for rechunking and dependent resolution, then add coverage for both a newly added name and a removed name. Done means callers reflect the final migrated name table after rechunking completes.
索引モデルが issue の本文から書いたものです。
説明
Company
Independent
Component
Code index
Describe what's wrong
When an extractor change moves the symbol stage, the re-chunk (ingest_pass._maybe_rechunk) re-derives every live file in sorted path order, in batches through reconcile.heal (_rechunk_batch). STAGE_INPUTS["edge"] = ("symbol",) (server/code/domain/extract/extractor_stamp.py), so the edge stage re-runs with it, and each file's edges resolve against the name table as it stands when that file's batch runs.
If the new symbol extraction gains a name in some file (a definition the old extractor missed), a caller in another file whose path sorts before it is re-derived while the name is still absent, and its call site is declined unresolved. The definer's batch then adds the name, but nothing re-resolves the caller: the re-chunk does not run the dependents step that a commit and a reconcile heal run over what they changed, and the caller's blob did not move, so no later reconcile finds it stale. The site stays declined until a commit touches the calling file.
A stage move that drops a name has the mirror effect: a caller earlier in path order keeps its edge into the definition until the definer's batch tombstones the symbol, and the edge is then left pointing at a retired symbol.
Does it reproduce on the latest release or main?
Not checked
How to reproduce
- Index a namespace whose
a/caller.cppcallshelper(), defined inb/lib.cppin a form the current symbol extractor does not emit, so the call site is declinedunresolved. - Change the symbol extractor so it emits
helper, which moves the symbol stage's stamp. - Let the worker's re-chunk finish (
code_index_statekeyextractor_stampreaches its target). a/caller.cppstill has its declinedhelpersite and no edge intohelper; re-ingestinga/caller.cppby hand binds it.
Expected behavior
After a stage migration completes, every caller resolves against the name table the migration produced, as it would after a full backfill with the new extractor.
Environment
main, code index fast tier.
Related issues and pull requests
Related: https://github.com/ClickHouse/loom/issues/1680
How this was found
An AI tool found it, and I have not reproduced it myself
Additional context
Running the per-commit dependents step after each re-chunk batch is the obvious fix and the wrong one: a whole-repository migration changes many names per batch, so every batch would hit code_closure_repair_max_names (500) and fill code_ingest_dependents_pending_max (5000). One dependents sweep after the cursor completes, over the union of what the batches added and removed, or a second edges-only pass over the files that hold declined sites or edges into names the migration changed, fits the shape better.
Redaction
- I removed tokens, keys, passwords and personal or customer data from everything above.
- 主要言語
- Python
- スター
- 221
- フォーク
- 35
- 平均マージ
- 14時間 21分
- マージ済み PR(30日)
- 873
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
ClickHouse/loom のほかの issue
-
難易度 1/5 1〜3時間 初心者へのやさしさ 76/100
ClickHouse/loom#2014 ·
メンテナーはふだん 1 日以内に返信
-
Options of loom period-digest, reextract, reconcile-status and demote-activity-narration print no help text対応中かも @VanshajPoonia が今日担当しました。 オープンbug good first issue help wanted up-for-grabs
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
ClickHouse/loom#1988 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
A compiler-tier checkout fetch from a shallow mirror never records its head対応中かも @KaloyanNaumov が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
ClickHouse/loom#2016 ·
メンテナーはふだん 1 日以内に返信
-
Delta workers fetch the compiler-tier checkout under a hard-coded 600 s limit対応中かも @KaloyanNaumov が今日担当しました。 オープン
難易度 1/5 1時間未満 初心者へのやさしさ 35/100
ClickHouse/loom#2012 ·
メンテナーはふだん 1 日以内に返信
-
loom participant retire cannot retire an orphaned participant after container replacement or host reboot対応中かも @l0K1ngg が今日担当しました。 オープンbug help wanted up-for-grabs
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
ClickHouse/loom#2007 · コメント 2 件 ·
メンテナーはふだん 1 日以内に返信
ClickHouse/loom の issue をすべて見る
似ている issue
-
DMB documentation good first issue help wanted
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ubuntu/ubuntu-project-docs#921 ·
メンテナーはふだん 1 日以内に返信
-
⏳ Pending feedback 🐛 Bug
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
jumpserver/jumpserver#18282 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信
-
accepted
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
future-agi/future-agi#5274 ·
メンテナーはふだん 1 日以内に返信
-
needs-triage
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
メンテナーはふだん 2 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
GenericMappingTools/pygmt#5014 · コメント 1 件 ·
メンテナーはふだん 1 日以内に返信