-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Bug]: [Nightly] Range search iterator with radius only will fail reporting range_filter < radius #29305
Comments
/unassign |
17.768Z] self = <test_search.TestSearchIterator object at 0x7f9444560cd0> [2023-12-31T10:02:17.768Z] [2023-12-31T10:02:17.768Z] @pytest.mark.tags(CaseLabel.L1) [2023-12-31T10:02:17.768Z] def test_range_search_iterator_COSINE(self): [2023-12-31T10:02:17.768Z] """ [2023-12-31T10:02:17.768Z] target: test iterator range search [2023-12-31T10:02:17.768Z] method: 1. search iterator [2023-12-31T10:02:17.768Z] 2. check the result, expect pk not repeat and meet the expr requirements [2023-12-31T10:02:17.768Z] expected: search successfully [2023-12-31T10:02:17.768Z] """ [2023-12-31T10:02:17.768Z] # 1. initialize with data [2023-12-31T10:02:17.768Z] batch_size = 100 [2023-12-31T10:02:17.768Z] collection_w = self.init_collection_general(prefix, True, is_index=False)[0] [2023-12-31T10:02:17.768Z] collection_w.create_index(field_name, {"metric_type": "COSINE"}) [2023-12-31T10:02:17.768Z] collection_w.load() [2023-12-31T10:02:17.768Z] # 2. search iterator [2023-12-31T10:02:17.768Z] search_params = {"metric_type": "COSINE", "params": {"radius": 0.8, "range_filter": 1}} [2023-12-31T10:02:17.768Z] > collection_w.search_iterator(vectors[:1], field_name, search_params, batch_size, [2023-12-31T10:02:17.768Z] check_task=CheckTasks.check_search_iterator, [2023-12-31T10:02:17.768Z] check_items={"metric_type": "COSINE", [2023-12-31T10:02:17.768Z] "radius": 0.8, [2023-12-31T10:02:17.768Z] "range_filter": 1}) [2023-12-31T10:02:17.768Z] [2023-12-31T10:02:17.768Z] testcases/test_search.py:9486: [2023-12-31T10:02:17.768Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [2023-12-31T10:02:17.768Z] utils/wrapper.py:33: in inner_wrapper [2023-12-31T10:02:17.768Z] res, result = func(*args, **kwargs) [2023-12-31T10:02:17.768Z] base/collection_wrapper.py:188: in search_iterator [2023-12-31T10:02:17.768Z] check_result = ResponseChecker(res, func_name, check_task, check_items, check, [2023-12-31T10:02:17.768Z] check/func_check.py:61: in run [2023-12-31T10:02:17.768Z] result = self.check_search_iterator(self.response, self.func_name, self.check_items) [2023-12-31T10:02:17.768Z] check/func_check.py:366: in check_search_iterator [2023-12-31T10:02:17.768Z] res = search_iterator.next() [2023-12-31T10:02:17.768Z] /usr/local/lib/python3.8/site-packages/pymilvus/orm/iterator.py:487: in next [2023-12-31T10:02:17.768Z] new_page = self.__try_search_fill() [2023-12-31T10:02:17.768Z] /usr/local/lib/python3.8/site-packages/pymilvus/orm/iterator.py:505: in __try_search_fill [2023-12-31T10:02:17.768Z] new_page = self.__execute_next_search(next_params, next_expr, True) [2023-12-31T10:02:17.768Z] /usr/local/lib/python3.8/site-packages/pymilvus/orm/iterator.py:524: in __execute_next_search [2023-12-31T10:02:17.768Z] res = self._conn.search( [2023-12-31T10:02:17.768Z] /usr/local/lib/python3.8/site-packages/pymilvus/decorators.py:129: in handler [2023-12-31T10:02:17.768Z] raise e from e [2023-12-31T10:02:17.768Z] /usr/local/lib/python3.8/site-packages/pymilvus/decorators.py:125: in handler [2023-12-31T10:02:17.768Z] return func(*args, **kwargs) [2023-12-31T10:02:17.768Z] /usr/local/lib/python3.8/site-packages/pymilvus/decorators.py:164: in handler [2023-12-31T10:02:17.768Z] return func(self, *args, **kwargs) [2023-12-31T10:02:17.768Z] /usr/local/lib/python3.8/site-packages/pymilvus/decorators.py:104: in handler [2023-12-31T10:02:17.768Z] raise e from e [2023-12-31T10:02:17.768Z] /usr/local/lib/python3.8/site-packages/pymilvus/decorators.py:68: in handler [2023-12-31T10:02:17.768Z] return func(*args, **kwargs) [2023-12-31T10:02:17.768Z] /usr/local/lib/python3.8/site-packages/pymilvus/client/grpc_handler.py:748: in search [2023-12-31T10:02:17.768Z] return self._execute_search(request, timeout, round_decimal=round_decimal, **kwargs) [2023-12-31T10:02:17.768Z] /usr/local/lib/python3.8/site-packages/pymilvus/client/grpc_handler.py:709: in _execute_search [2023-12-31T10:02:17.768Z] raise e from e [2023-12-31T10:02:17.768Z] /usr/local/lib/python3.8/site-packages/pymilvus/client/grpc_handler.py:702: in _execute_search [2023-12-31T10:02:17.768Z] check_status(response.status) [2023-12-31T10:02:17.768Z] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ [2023-12-31T10:02:17.768Z] [2023-12-31T10:02:17.768Z] status = error_code: UnexpectedError [2023-12-31T10:02:17.768Z] reason: "fail to search on QueryNode 1: worker(1) query failed: Assert "range_filter > ra...cpp:122\n => range_filter must be greater than radius for IP/COSINE: service internal error: UnknownError" [2023-12-31T10:02:17.768Z] code: 65535 [2023-12-31T10:02:17.768Z] [2023-12-31T10:02:17.768Z] [2023-12-31T10:02:17.768Z] def check_status(status: Status): [2023-12-31T10:02:17.768Z] if status.code != 0 or status.error_code != 0: [2023-12-31T10:02:17.768Z] > raise MilvusException(status.code, status.reason, status.error_code) [2023-12-31T10:02:17.768Z] E pymilvus.exceptions.MilvusException: <MilvusException: (code=65535, message=fail to search on QueryNode 1: worker(1) query failed: Assert "range_filter > radius" at /go/src/github.com/milvus-io/milvus/internal/core/src/common/RangeSearchHelper.cpp:122 [2023-12-31T10:02:17.768Z] E => range_filter must be greater than radius for IP/COSINE: service internal error: UnknownError)> same behavior for test case : test_range_search_iterator_COSINE |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
keep it |
@cydrain this might be the similar case |
The issue has not reproduced for a long time. So close it first. |
Is there an existing issue for this?
Environment
Current Behavior
Range search iterator with radius only will fail reporting range_filter < radius.
Expected Behavior
pass
Steps To Reproduce
No response
Milvus Log
Anything else?
No response
The text was updated successfully, but these errors were encountered: