You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Bug]: TestISCPExecutor3 checks HNSW indexes before all jobs reach append target #30625
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.
Exact main base: b24d1b311555e0b6f3d56eb37f9a2e9617e9a5b7
The same wait-idx_0 / check-all-four sequence is present on main at 7c146f4adbf068dd0c06b377157cfb7d7698b1eb.
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
fix: preserve empty flush snapshots and synchronize async CI tests (#…