In a two-node cluster, if 1 node is closed and a key that is not in the bucket is requested, it waits until the time-out period.
Example:
There are documents with keys a, b, c in the bucket, with the above situation;
- bucket.async() .get(“a”).timeout(200, TimeUnit.MILLISECONDS)…singleOrDefault(null); // return document after 1ms.
- bucket.async() .get(“d”).timeout(200, TimeUnit.MILLISECONDS)…singleOrDefault(null); // return timeoutexception occurs after 200ms.
What is the reason of this?
What is the solution?