I’m trying to replace a set of documents in couchbase, but want to skip documents which do not exist in the bucket.
When using spark connector 2.4 I used StoreMode.REPLACE_AND_IGNORE and that worked fine. But now I’m trying to upgrade to the newer 3.0 spark connector. In the migration guide it states that I should use couchbaseReplace, but there seems to be no option to ignore DocumentNotFoundException.
It seems that my whole job fails if one of the documents is missing.
@DemonTPx woops, you are right we missed that equivalent. We just released 3.2.1 so there is no immediate release planned, but I’ll make sure it gets rolled into the next one. As a workaround, you could perform N couchbaseReplace operations and handle the catch yourself?