Commit Graph

25 Commits (17532517c611cafe5ec7a79bda47c9f296e82682)

Author SHA1 Message Date
zhuwenxing 96615cce41
test: add MinHash DIDO function test suite (#47324)
/kind improvement

add testcases and fix a related issue

issue: #47928

---------

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-18 17:17:30 +08:00
yanliang567 6cc4d9a9d0
test: Remove hardcoded metric_type from chaos test search params (#48255)
## Summary
- Remove `metric_type` from `DEFAULT_SEARCH_PARAM` and
`DEFAULT_INT8_SEARCH_PARAM` in chaos test constants, letting the server
auto-infer metric type from the index
- Fixes chaos test failures (broken since build #24014) where
`AddVectorFieldChecker` creates COSINE-indexed vector fields but all
search checkers hardcode `metric_type: L2`

## Root Cause
In chaos tests, `AddVectorFieldChecker` dynamically adds nullable
FLOAT_VECTOR fields with **COSINE** HNSW index. After etcd pod-failure
recovery, `SearchChecker`, `HybridSearchChecker`, and
`NullVectorSearchChecker` re-initialize and discover these new fields.
When they search on them using hardcoded `metric_type: L2`, the server
returns:
- `metric type not match: invalid parameter[expected=COSINE][actual=L2]`
- `hybrid_search` 0% success rate (iterates ALL vector fields)
- `search`/`null_vector_search` ~28% success rate

Reference failure: [chaos-test-cron
#24056](https://qa-jenkins.milvus.io/blue/organizations/jenkins/chaos-test-cron/detail/chaos-test-cron/24056/pipeline/)

## Test plan
- [x] Verified on Milvus master (`master-20260313-f163e94`): search
without `metric_type` correctly auto-detects L2 and COSINE from index
- [x] Verified hybrid search across mixed metric types (L2 + COSINE)
works without specifying `metric_type`
- [x] Backwards compatible: explicit `metric_type` in search params
still works

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Signed-off-by: yanliang567 <82361606+yanliang567@users.noreply.github.com>
Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-16 15:33:25 +08:00
zhuwenxing e0df44481d
test: refactor checker to using milvus client (#45524)
/kind improvement

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
2025-11-20 11:59:08 +08:00
zhuwenxing bfa948c2d4
test: Add int8 vector field support in search checker (#42047)
/kind improvement

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
2025-05-26 16:18:49 +08:00
zhuwenxing ac2858d418
test: add full text search checker in test (#37122)
/kind improvement

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
2024-10-25 14:09:29 +08:00
zhuwenxing f0bff1e1a8
test: add hybrid search in checker for test (#30341)
add hybrid search in checker for test

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
2024-02-23 10:46:52 +08:00
zhuwenxing aab7cc9ecd
test: add freshness checker (#30280)
add freshness checker

insert/upsert --> query:  Get the time when it can be queried

delete --> query: Get the time when it can not be queried

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
2024-01-29 12:09:01 +08:00
zhuwenxing b3de99e336
[test]Add method to analyze chaos test result (#26724)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
2023-09-01 10:31:01 +08:00
zhuwenxing ee5da73fae
[test]Add bulk insert for test and refactoring the checker function (#25997)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
2023-07-31 12:45:03 +08:00
zhuwenxing c5a7f94582
[test]Update index type (#19348)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>

Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
2022-09-26 18:40:53 +08:00
zhuwenxing b745b6f707
[skip e2e]Add all pods kill chaos test (#15761)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
2022-02-25 18:41:53 +08:00
zhuwenxing db1479428e
[skip e2e]Refactor chaos test to support multi experiments (#14704)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
2022-01-04 09:03:20 +08:00
ThreadDao edae89e91b
[skip e2e] Reformat chaos constants file (#14583)
Signed-off-by: ThreadDao <yufen.zong@zilliz.com>
2021-12-30 14:26:06 +08:00
zhuwenxing faba73881e
[skip e2e]Remove unused code (#14545)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
2021-12-29 21:02:18 +08:00
ThreadDao 72b4e1f718
[skip e2e] Update milvus image harbor (#13874)
Signed-off-by: ThreadDao <yufen.zong@zilliz.com>
2021-12-21 16:07:02 +08:00
zhuwenxing 9a8072a8c0
[skip ci]Scaling up entities num and chaos duration for chaos test (#13197)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
2021-12-10 21:52:14 +08:00
zhuwenxing b9dd780a5b
[skip ci]Fix pod failure chaos github action (#10208)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
2021-10-19 21:08:44 +08:00
zhuwenxing 12b71434c2
[skip ci]Add a shell command to change the chaos type (#9972)
Signed-off-by: zhuwenxing <wenxing.zhu@zilliz.com>
2021-10-15 18:12:50 +08:00
yanliang567 000ca0f627
[skip ci]Add comments for chaos constants (#8371)
Signed-off-by: yanliang567 <yanliang.qiao@zilliz.com>
2021-09-23 16:46:27 +08:00
yanliang567 59a65e787e
[skip ci]Refector custom resource definition class for test framework (#8065)
Signed-off-by: yanliang567 <yanliang.qiao@zilliz.com>
2021-09-16 16:35:53 +08:00
yanliang567 001cb74fcd
[skip ci]Add comments for chaos tests (#7935)
Signed-off-by: yanliang567 <yanliang.qiao@zilliz.com>
2021-09-15 10:33:52 +08:00
yanliang567 d2656986c6
[skip ci]Remove useless code in constants (#7876)
Signed-off-by: yanliang567 <yanliang.qiao@zilliz.com>
2021-09-14 13:19:47 +08:00
yanliang567 d0a62aab7c
[skip ci]Remove useless constant (#7757)
Signed-off-by: yanliang567 <yanliang.qiao@zilliz.com>
2021-09-11 17:02:01 +08:00
yanliang567 b78550374b
[skip ci]Remove useless code (#7745)
Signed-off-by: yanliang567 <yanliang.qiao@zilliz.com>
2021-09-10 19:28:01 +08:00
binbin eff75c7701
Replace sdk source and merge tests and tests20 (#7182)
Signed-off-by: Binbin Lv <binbin.lv@zilliz.com>
2021-08-20 11:00:56 +08:00