Details
-
Task
-
Resolution: Won't Fix
-
Major
-
None
-
Server 5.0.1
-
None
-
DOC-S17-Jun01, DOC-S19-Jun29, DOC-2019-S04-Feb22, DOC-2019-S05-Mar08, DOC-2019-S07-Apr05, DOC-2019-S09-May03, DOC-2019-S11-May31, DOC-2019-S14-Jul12, DOC-2019-S18-Sep06, DOC-2020-S1-Jan13, DOC-2020-S3-Feb23, DOC-2020-S5-Mar22
Description
The replica example on https://developer.couchbase.com/documentation/server/4.6/sdk/nodejs/failure-considerations.html shows only KeyNotFound as an event to trigger a replica read, however above this it states "In conditions where access to the active node is unavailable (for example, it is disconnected from the network), an application may be able to access a replica version of the item using the get-from-replica operation which queries a replica node for a copy of the item."
In that case NodeUnavailable would be returned, so there are other cases in which a replica read should be used based on the ResponseStatus that is returned by the SDK.