Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-1206

Allow per-operation timeouts

    XMLWordPrintable

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.4.6
    • Fix Version/s: 2.5.0
    • Component/s: library
    • Labels:
      None

      Description

      Allow a per-operation timeout to be specified on CRUD methods, similar to how one can be specified via QueryRequest.Timeout().

      Certain access patterns benefit from the ability to specify different timeouts based on their context.

      Example
      An application that prefers availability and lower latency over consistency may wish to fail an initial get() faster while allowing more time for a fallback getFromReplica() call.

      Pseudocode:
      try

      { get(key, new TimeSpan(0,0,0,0,200)) }

      catch (OperationTimeoutException)

      { getFromReplica(key, new TimeSpan(0,0,0,1)) }

        Attachments

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

          Activity

          Hide
          jmorris Jeff Morris added a comment -

          Moving this up one release (2.5.0), because of the size of the change, testing considerations and because the interface changes.

          Show
          jmorris Jeff Morris added a comment - Moving this up one release (2.5.0), because of the size of the change, testing considerations and because the interface changes.

            People

            • Assignee:
              jmorris Jeff Morris
              Reporter:
              dproctor Dean Proctor (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.