Skip to content

[Subtask]: D15 [4.2-to-main] Simplify unpublished-object ownership and intermediate sinker/transaction/engine ledgers #32292

Open

Description

@XuPeng-SH

Parent Issue

Parent issue: #32278

Detail of Subtask

Catalog ID: D15
Origin: A - Introduced by 4.2-to-main evolution or incomplete retirement on main
Evidence level: New reliability mechanism; evaluate its complete complexity and cost

4.2 versus main: provenance

Baseline gcFiles deletes asynchronously through gcPool and logs failures. It lacks main's new engine pending-retry queue and reservation/recorded/pending claim ledger. Main adds useful retryable deletion alongside additional cross-layer state and shared admission.

Design problem, impact, and existing responsibility

Sinker, transaction, and engine maintain name sets, claims, reservations, queues, and a shared lock. The default 500,000-object limit also counts active transactions; exhaustion returns an internal workspace admission paused error even when storage is healthy. The in-memory queue is not directly restart-recoverable; independent storage-GC coverage remains unverified.

Acceptance criteria

  • Preserve commit/rollback, cancellation, failed-delete retries, repeated handoff, and shutdown correctness, with one effective cleanup owner at every terminal leaf.
  • Identify eventual recovery after crashes. Measure long transactions, multiple tenants, storage errors, lock contention, and capacity boundaries without unjustified cross-tenant blocking.
  • Explain removed state/scans/allocations and retained reliability value. Do not delete necessary retries based on code size or add a parallel GC service.

Describe implementation you've considered

Map creation, persistence, publication, transfer, retry, shutdown, and crash recovery within existing workspace/GC ownership. Identify necessary consumers of every set and eliminate derived/duplicate state while retaining failed-deletion recovery. Separate capacity responsibilities for normal uncommitted objects and failed cleanup backlog.

Additional information

Existing investigation and validation limits

A real ledger reserve/convert probe uses preallocated names and 100,000 objects in one claim. After GC, the ledger adds about 21.6MiB of live heap across three runs, excluding workspace, names, and queues; this is not total RSS. Existing small-limit backlog/transfer tests pass. No 500,000-real-object scale run has been performed.

main investigation snapshot: pkg/vm/engine/disttae/txn.go:1422; pkg/vm/engine/disttae/txn.go:1588; pkg/vm/engine/disttae/types.go:298

4.2 baseline snapshot: pkg/vm/engine/disttae/types.go:1027

The named probes are local diagnostic overlays, not committed repository tests. Their names identify the investigation; they cannot be selected directly from an ordinary checkout. Implement the smallest maintained contract regressions and reuse relevant CI/validation proportionally. Temporary evidence commits are not required.

Related existing work: #25127. Closed items identify implemented controls or historical context; they do not mean this subtask is already resolved.

Activity

  1. self-assigned this
    on Nov 5, 2026
  2. added theissue type on Nov 5, 2026
  3. changed the title [-][Subtask]: D15 [4.2→main] 梳理未发布对象全生命周期,减少 sinker/txn/engine 的同步中间账本[/-] [+][Subtask]: D15 [4.2-to-main] Simplify unpublished-object ownership and intermediate sinker/transaction/engine ledgers[/+] on Nov 5, 2026
  4. MatrixAdventurer commented on Nov 6, 2026

    @MatrixAdventurer
    Contributor

    分级建议:severity/s-1——对象 GC 账本回收链路的简化类子任务,正文按源码确认,无故障或数据错误记录。
    所属模块:对象 GC 回收(gcDelete/gcFiles 账本链路)。
    疑似重复:未发现直接重复;相关 #32169(open,备份受 GC 影响)、#25938/#16101(closed)。
    建议负责人:XuPeng-SH(父单 #32278 发起人、本子任务 assignee)。
    本操作由LW授权的MOI智能体提交

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions