Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-2828

Address other cases in which a replica read should be used based on the ResponseStatus that is returned by the SDK.

    XMLWordPrintable

Details

    • 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.

      Attachments

        Issue Links

          No reviews matched the request. Check your Options in the drop-down menu of this sections header.

          Activity

            People

              richard.smedley Richard Smedley
              tony.hillman Tony Hillman (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty