java-client icon indicating copy to clipboard operation
java-client copied to clipboard

QdrantClient logs an error when a point is not found

Open kolstae opened this issue 10 months ago • 0 comments

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.

kolstae avatar May 21 '25 19:05 kolstae