Hi there,
I’m migrating SDK 2 in my project to Java SDK 3. (3.0.3)
My code looks like this:
collection.getAndTouch(k, Duration.ofSeconds(expiry), GetAndTouchOptions.getAndTouchOptions().timeout(Duration.ofSeconds(timeout)) .retryStrategy(FailFastRetryStrategy.INSTANCE)) .onErrorResume(DocumentNotFoundException.class, ex -> Mono.empty())
However, in the log, I’m getting logs from reactor:
reactor.core.publisher.Operators
Operator called default onErrorDropped
Stach trace:
com.couchbase.client.core.error.DocumentNotFoundException: Document with the given id not found
at com.couchbase.client.core.error.DefaultErrorUtil.keyValueStatusToException(DefaultErrorUtil.java:45)
at com.couchbase.client.java.kv.GetAccessor.lambda$getAndTouch$4(GetAccessor.java:103)
…
Why do I get these messages, isn’t the onErrorResume I’m doing should block the global hook? How can I avoid them?
Thanks,
Asher