Skip to content

[Bug]: TestISCPExecutor3 checks HNSW indexes before all jobs reach append target #30625

Closed

Description

@XuPeng-SH

Problem

TestISCPExecutor3 can check HNSW index contents before every index job has completed the final append. In the final recovery phase, the test waits for hnsw_idx_0 to reach appendTarget, then checks hnsw_idx_0 through hnsw_idx_3.

CI occurrence

Actual behavior

The failure is in the source-minus-index check for hnsw_idx_3: it finds one source row missing from the index and fails the expected-zero assertion.

The CI trace shows the hnsw_idx_3 insert and watermark update were still executing in transaction ...ebd4 when the checker transaction ...ebde started its source-minus-index query. The checker began at approximately 10:06:52.938961; the index transaction's watermark update did not finish until 10:06:52.946600, and the checker query completed at 10:06:52.949406. The checker therefore could read before the index transaction committed.

Root cause

This is a test synchronization gap. GetWatermark(jobName) returns the watermark for the named job; waiting for hnsw_idx_0 does not establish that hnsw_idx_3 has processed the same append. The test then checks all four jobs without waiting for each one.

The trace does not show permanent row loss or that hnsw_idx_3 reached appendTarget and then lost data. The failure is consistent with the assertion running before that index's write became visible.

Expected behavior and proposed correction

Before checking the four indexes, wait for each hnsw_idx_0 through hnsw_idx_3 to reach appendTarget, then run the data checks from a snapshot that can observe those committed index writes. The checks should continue to assert source/index equality.

Related issue

#26530 records an earlier TestISCPExecutor3 failure during the injected getDirtyTables phase. This report captures a distinct late-phase failure where the test waits on only one job before checking all four.

Activity

  1. added
    kind/bug
    on Oct 20, 2026
  2. self-assigned this
    on Oct 20, 2026
  3. added a commit that references this issue on Oct 20, 2026
    79298b1
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