Uploaded image for project: 'Couchbase C client library libcouchbase'
  1. Couchbase C client library libcouchbase
  2. CCBC-948

The library might stuck in indefinite retry of configuration get when all nodes down



    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.9.3
    • Component/s: None
    • Labels:


      In synchronous mode (data requests followed by lcb_wait) when node down (or the network link cut), the library will insert get_config (0xb5) request into retry queue, and that might lead lcb_wait not to return when all data requests timed out. Because it blocks indefinitely and will not give control to user application, the only two options left to the user:

      • just kill thread holding lcb_t instance and reconnect
      • count responses with lcb_breakout() in the callback on timeout status + lcb_wait in the loop until all requests served.

      The library should be able to detect that the only request in the retry queue is get_config (0xb5) and consider that queue empty when checking for permissing to breakout for lcb_wait().

      The asynchronous interaction is not affected by this issue as it would not use lcb_wait at all.


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


          avsej Sergey Avseyev created issue -
          avsej Sergey Avseyev made changes -
          Field Original Value New Value
          Link This issue blocks CBSE-5052 [ CBSE-5052 ]
          avsej Sergey Avseyev made changes -
          Fix Version/s 2.9.3 [ 15226 ]
          avsej Sergey Avseyev made changes -
          Status New [ 10003 ] Open [ 1 ]
          avsej Sergey Avseyev made changes -
          Resolution Fixed [ 1 ]
          Status Open [ 1 ] Resolved [ 5 ]


            • Assignee:
              avsej Sergey Avseyev
              avsej Sergey Avseyev
            • Votes:
              0 Vote for this issue
              1 Start watching this issue


              • Created:

                Gerrit Reviews

                There are no open Gerrit changes


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