Skip to content

[Bug]: [Nightly] Expected to search 9 results out of 10 but failed #40790

@NicoYuan1986

Description

@NicoYuan1986

Is there an existing issue for this?

  • I have searched the existing issues

Environment

- Milvus version: 2710eb3(2.5)
- Deployment mode(standalone or cluster):cluster
- MQ type(rocksmq, pulsar or kafka):    kafka
- SDK version(e.g. pymilvus v2.0.0rc2):
- OS(Ubuntu or CentOS): 
- CPU/Memory: 
- GPU: 
- Others:

Current Behavior

Expected to search 9 results out of 10 but failed.

2025-03-19T19:28:03Z {container="step-test"} @pytest.mark.tags(CaseLabel.L2)
2025-03-19T19:28:03Z {container="step-test"} def test_range_search_radius_range_filter_not_in_params(self):
2025-03-19T19:28:03Z {container="step-test"} """
2025-03-19T19:28:03Z {container="step-test"} target: test range search radius and range filter not in params
2025-03-19T19:28:03Z {container="step-test"} method: create connection, collection, insert and search
2025-03-19T19:28:03Z {container="step-test"} expected: search successfully as normal search
2025-03-19T19:28:03Z {container="step-test"} """
2025-03-19T19:28:03Z {container="step-test"} # 1. initialize with data
2025-03-19T19:28:03Z {container="step-test"} collection_w, _vectors, _, insert_ids, time_stamp = self.init_collection_general(
2025-03-19T19:28:03Z {container="step-test"} prefix, True, nb=10)[0:5]
2025-03-19T19:28:03Z {container="step-test"} # 2. get vectors that inserted into collection
2025-03-19T19:28:03Z {container="step-test"} vectors = np.array(_vectors[0]).tolist()
2025-03-19T19:28:03Z {container="step-test"} vectors = [vectors[i][-1] for i in range(default_nq)]
2025-03-19T19:28:03Z {container="step-test"} # 3. range search with L2
2025-03-19T19:28:03Z {container="step-test"} range_search_params = {"metric_type": "COSINE",
2025-03-19T19:28:03Z {container="step-test"} "radius": 0, "range_filter": 1}
2025-03-19T19:28:03Z {container="step-test"} >       collection_w.search(vectors[:default_nq], default_search_field,
2025-03-19T19:28:03Z {container="step-test"} range_search_params, default_limit,
2025-03-19T19:28:03Z {container="step-test"} default_search_exp,
2025-03-19T19:28:03Z {container="step-test"} check_task=CheckTasks.check_search_results,
2025-03-19T19:28:03Z {container="step-test"} check_items={"nq": default_nq,
2025-03-19T19:28:03Z {container="step-test"} "ids": insert_ids,
2025-03-19T19:28:03Z {container="step-test"} "limit": default_limit})

2025-03-19T19:28:03Z {container="step-test"} [2025-03-19 18:37:32 - INFO - ci_test]: search_results_check: Numbers of query searched is correct (func_check.py:372)
2025-03-19T19:28:03Z {container="step-test"} [2025-03-19 18:37:32 - ERROR - ci_test]: search_results_check: limit(topK) searched (9) is not equal with expected (10) (func_check.py:387)

There are only 10 data in the collection, so Brute-force search should return all results.

Expected Behavior

pass

Steps To Reproduce

Milvus Log

https://jenkins.milvus.io:18080/blue/organizations/jenkins/Milvus%20Nightly%20CI(new)/detail/2.5/99/pipeline/144/

Anything else?

No response

Metadata

Metadata

Assignees

Labels

component/kafkakind/bugIssues or changes related a bugstability-nightlystaleindicates no udpates for 30 daystriage/acceptedIndicates an issue or PR is ready to be actively worked on.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions