milvus-io / milvus

A cloud-native vector database, storage for next generation AI applications
https://milvus.io
Apache License 2.0
30.87k stars 2.94k forks source link

[Enhancement]: Do not panic if a Rust function returns an error #37930

Open sunby opened 8 hours ago

sunby commented 8 hours ago

Is there an existing issue for this?

What would you like to be added?

Now we only call unwrap in Rust function and make system crash. Maybe we can convert Rust error to a C++ struct and return to caller, then we can handle it in C++.

Why is this needed?

No response

Anything else?

No response