java-client
java-client copied to clipboard
QdrantClient logs an error when a point is not found
The client adds a logFailureCallback for all operations and there's no way to change this behavior.
E.g. a call to queryAsync on a non-existing point logs the error:
message: Query operation failed
throwable:
io.grpc.StatusRuntimeException: NOT_FOUND: Not found: No point with id 123 found
at io.grpc.Status.asRuntimeException(Status.java:533)
at io.grpc.stub.ClientCalls$UnaryStreamToFuture.onClose(ClientCalls.java:538)
at io.grpc.internal.ClientCallImpl.closeObserver(ClientCallImpl.java:564)
...
It would be great to be able to decide what to do on exceptions. The exceptions are received by the calling code, so handling it should be left to the caller IMO.