Skip to content

[Bug]: TestInvalidTimestamp flakes when ISCP watermark stays at 0-0 after invalid-timestamp fault #27997

Closed

Description

@iamlinjunhong

CI failure

The race shard failed only at pkg/vm/engine/test.TestInvalidTimestamp. After injecting invalid timestamp, waitForISCPWatermark timed out with ISCP watermark did not reach expected state; the observed watermark remained 0-0 for the HNSW job. The log also records ISCP-Task apply iscp log failed ... internal error: invalid timestamp. This is an asynchronous watermark-progress assertion failure, not a compile, type, static-analysis, or security gate failure.

Independence evidence

The PR changes view-definition metadata parsing/persistence and associated SQL/BVT expectations; it does not modify pkg/vm/engine/test, pkg/iscp, the HNSW/ISCP path, or the UT harness.

Using the repository CGo wrapper with the CI-relevant race/short mode:

.agents/skills/mo-dev/scripts/mo-cgo-test -race -short -v -count=1 -timeout=40m -run ^TestInvalidTimestamp$ ./pkg/vm/engine/test
  • Exact PR head: passed 3/3.
  • Clean current official up/main c46d897e9645b80178568ef0783dd8e99e527222: passed 3/3 after an isolated make cgo provenance build.

The clean baseline was a detached temporary worktree and was removed after testing. A prior related issue, #26491, is closed; this is a new CI occurrence requiring triage.

Reproduction

Run the command above in a clean MatrixOne checkout with its native CGo prerequisites. The case creates an ISCP HNSW job, injects an invalid timestamp, removes the barrier, and expects the watermark to advance to the registration commit timestamp.

A single failed-jobs rerun of run 33587927832 is planned after recording this issue.

Activity

  1. iamlinjunhong commented on Sep 11, 2026

    @iamlinjunhong
    ContributorAuthor

    New CI occurrence for PR #27716, exact original head 90a1ab95db305f486d99c541a33fbfdfde743838.

    Failed workflow/check: Matrixone CI execution / UT Test on Ubuntu/x86, run 34565278565, job 103156040935, attempt 1. The aggregate CI Required check failed on the same run.

    The exact failure was pkg/vm/engine/test.TestGCInMemoryJob:

    change_handle_test.go:3210: Condition never satisfied
    change_handle_test.go:3232: ISCP watermark did not reach expected state
    account=0 table=16390 job=hnsw_idx expectation=reach 1789109450099906879-0 observed=true found=true current=0-0
    FAIL_UT_CASES=TestGCInMemoryJob,TestHAKeeperClientSendCNHeartbeat
    

    The PR changes view-metadata protocol/parser/planner/sysview paths; it does not change pkg/vm/engine/test, pkg/iscp, the HNSW/ISCP implementation, or the UT harness. Using the repository CGo wrapper with the CI-relevant mode -race -tags matrixone_test -short -p 1 -timeout 40m -count=3 -run ^TestGCInMemoryJob$ ./pkg/vm/engine/test, the exact PR head passed 3/3 and a clean detached current up/main (123b4c1f5fb6e0f0bc69d02eee5b0b7cca289bcf) also passed 3/3. The same selection/list check was non-empty in both trees. This is a new occurrence of the asynchronous ISCP watermark 0-0 failure family already recorded here, not a deterministic failure of the PR change.

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