Skip to content

[Bug]: bvt test failed with inconsistent result of async index update tasks #22794

Closed

Description

@cpegeric

Is there an existing issue for the same bug?

  • I have checked the existing issues.

Branch Name

main

Commit ID

6595e62

Other Environment Information

- Hardware parameters:
- OS type:
- Others:

Actual Behavior

inconsistent result and sometimes w-w conflict due to async index update task.

Image

Expected Behavior

No response

Steps to Reproduce

run bvt test.

Additional information

No response

Activity

  1. added
    kind/bug
    on Nov 7, 2025
  2. added a commit that references this issue on Nov 7, 2025
  3. cpegeric commented on Nov 12, 2025

    @cpegeric
    ContributorAuthor

    please verify and close

  4. matrix-meow commented on Nov 12, 2025

    @matrix-meow
    Contributor

    Hello @cpegeric. The bug issue in the BVT test code has not been removed,issues automatically open.

  5. assigned and unassigned on Nov 12, 2025
  6. Ariznawlll commented on Aug 26, 2026

    @Ariznawlll
    Collaborator

    测试版本

    • PR:test: expand GoJieba fulltext BVT coverage #25897
    • 分支:test/gojieba-bvt-coverage
    • commit:78214d9c017fb437856cab8639925e8167818e49
    • 部署方式:GitHub Actions Compose Multi-CN + Proxy,pessimistic transaction BVT
    • 测试日期:2026-08-26

    原问题验证

    本问题在 PR #25897 的 Multi-CN BVT 中再次复现。失败用例为 test/distributed/cases/pessimistic_transaction/vector/vector_hnsw_async.sql 第 133 行:第一批 10,000 行 HNSW model ready 后,再并行 LOAD 第二批 10,000 行;metadata checksum 已发生变化,但黑盒 endpoint 查询连续等待 120 秒仍未返回第二批数据中的精确近邻。

    Happy Path 覆盖

    1. 第一批 10,000 行基线数据和初始 HNSW generation 构建成功。
    2. 第二批 10,000 行 LOAD 成功,基表行数达到 20,000。
    3. HNSW metadata checksum 相比 delta 前发生变化,说明新的 metadata generation 已发布。

    Unhappy Path 覆盖

    1. 新 generation 发布后,@wait_expect(2, 120) 连续轮询 endpoint 结果,120 秒内始终不正确。
    2. 期望:f32-delta-first=10000、f32-delta-last=19999。
    3. 实际:f32-delta-first=9691、f32-delta-last=2638;两个结果均来自第一批 10,000 行,表明第二批 CDC delta 未被当前 HNSW 搜索模型正确检索,或查询持续使用旧模型。
    4. 用例汇总:total=78, success=77, failed=1,耗时 168.308s。

    白盒验证

    本次为 CI 黑盒复现,未增加白盒 fault injection。现象将问题范围收敛到异步 HNSW 增量 generation 的完整性或模型刷新路径。

    回归测试

    • 现有回归:test/distributed/cases/pessimistic_transaction/vector/vector_hnsw_async.sql
    • 该用例已经使用 metadata checksum 变化与黑盒 endpoint 双重 readiness gate,不是固定 sleep 不足导致的误报。
    • PR test: expand GoJieba fulltext BVT coverage #25897 仅修改 4 个 GoJieba/fulltext BVT 文件,与 HNSW 代码和该用例没有文件交集,因此本次失败不是该 PR 引入。
    • 关联历史问题:[Bug]: BVT vector_hnsw_async.sql failed #22792 曾记录同一 vector_hnsw_async.sql 中期望 endpoint 19999、实际返回旧近邻的失败。

    测试证据

    测试结论

    测试不通过。

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