Skip to content

[Bug]: failed ICKP publication leaves an unpublished object #26583

Closed

Description

@XuPeng-SH

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main (PR #26442 merge-head)

Commit ID

  • Tested merge-head: c0340ad52da15afeda824f7cb2f2a6f05f849ec5
  • Base main: ae2785f09f39292d4ec73bff772e0a0256a68da9
  • Current-main audit: 23b155387d5498feafbee5d2f095570eb8295f2b

Other Environment Information

Actual Behavior

Test_CheckpointChaos1 intentionally injects a checkpoint-save error through objectio.InjectCheckpointSave. The injected save failure is expected. The failure path, however, must restore object storage to its pre-checkpoint snapshot.

The job retried the failed ICKP three times, exhausted the one-second force-checkpoint context, then found one extra object after the failure:

expected: []
actual:   ["019fc10c-d913-7295-9790-bd6d906344fa_00000:false:760"]

The relevant log sequence is:

ICKP-Execute-Error phase=save-ckp rollback-object-count=2
ICKP-Schedule-Force-End retry-count=3 no-progress-retries=3 error=context deadline exceeded
ICKP-Control-Force-End error=context deadline exceeded

PR #26442 changes only foreign-key planning/MULTI_UPDATE code. Its merge-head already contains #26546, so this failure is independent of the FK change.

A current-main audit finds no subsequent changes to the checkpoint cleanup implementation or Test_CheckpointChaos1; therefore latest main has no demonstrated fix.

Expected Behavior

When ICKP publication fails before metadata ownership transfers, every data and table-ID object persisted for that attempt must be removed. Retrying the failed checkpoint must not leave objects behind, and the filesystem snapshot after failure must equal the snapshot before the attempt.

Steps to Reproduce

  1. Check out c0340ad52da15afeda824f7cb2f2a6f05f849ec5 (or a descendant with the same checkpoint code).
  2. Run Test_CheckpointChaos1 in pkg/vm/engine/tae/db/test.
  3. The test enables the checkpoint-save fault injection and calls ForceCheckpoint with a one-second context.
  4. Observe the expected save failures followed by a filesystem snapshot mismatch containing one leftover unpublished object.

Additional information

The test assertion is at pkg/vm/engine/tae/db/test/db_test.go:9308 in the tested merge-head. The Docker socket warnings at job startup are explicitly ignored by the workflow and are unrelated to the test failure.

Activity

  1. added
    kind/bug
    on Aug 2, 2026
  2. matrix-meow commented on Aug 3, 2026

    @matrix-meow
    Contributor

    Recurrence: PR #26607 (fix insert ignore, main). 1.16s.

  3. gouhongshen commented on Aug 3, 2026

    @gouhongshen
    Contributor

    Recurrence on the unrelated Ubuntu UT job for PR #26504 at exact head 74cef706ec05471643afb24102edc3c034648e48 (the PR changes only Data Branch frontend code and its BVT):

    This is the same checkpoint rollback failure tracked here and is independent of PR #26504.

  4. aptend commented on Aug 4, 2026

    @aptend
    Contributor

    Recurrence on the unrelated Ubuntu/x86 UT job for PR #26669 at exact head f7c755a10ba5506893c24ff1a6ad6eaedb30ad35:

    This head merges main commit 903546263ff9bd976e5a4ab55c73a41200b3fae1 as its second parent, so the recurrence is after that referenced commit was included. That commit is the Data Branch float fix from #26504 and explicitly contains no workaround for #26583. PR #26669 only changes allocation capacity-class width and its focused test; it does not touch TAE checkpoint code.

  5. added a commit that references this issue on Aug 4, 2026
    62766f8
  6. assigned and unassigned on Aug 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

kind/bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions