We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
If method of the client fail due to an RPC error, raise a MilvusException instead of freezing the excution.
MilvusException
For example, if i call .insert() on a collection does not exists:
.insert()
try: client = MilvusClient( uri="...", db_name="...", ) except Exception as ex: logger.exception(ex) raise Exception("[Error] Unable to connect to Milvus") try: client.insert( collection_name="not-existing-collection", data={...}, ) except Exception as ex: # Never enters here! logger.exception(ex) raise Exception("[Error] Unable to insert data to Milvus") finally: client.close()
i see in the logs:
RPC error: [describe_collection], <DescribeCollectionException: (code=100, message=can't find collection collection not found[database=db_d15830d434f6fa2][collection=articles_preference])>, <Time:{'RPC start': '2024-05-06 12:54:56.493406', 'RPC error': '2024-05-06 12:54:56.519075'}> RPC error: [insert_rows], <DescribeCollectionException: (code=100, message=can't find collection collection not found[database=db_d15830d434f6fa2][collection=articles_preference])>, <Time:{'RPC start': '2024-05-06 12:54:56.493382', 'RPC error': '2024-05-06 12:54:56.519235'}>
But the execution does not stop, resulting in an infine loop (at least, more than 10 minutes).
This blocks the execution if an error occurs without possibility to intercept the error.
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Is there an existing issue for this?
What would you like to be added?
If method of the client fail due to an RPC error, raise a
MilvusException
instead of freezing the excution.For example, if i call
.insert()
on a collection does not exists:i see in the logs:
But the execution does not stop, resulting in an infine loop (at least, more than 10 minutes).
Why is this needed?
This blocks the execution if an error occurs without possibility to intercept the error.
Anything else?
No response
The text was updated successfully, but these errors were encountered: