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

function lcb_wait works infinitly after trying to connect (by calling lcb_connect) to Couchbase server that is on Pending state

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.0.4
    • Component/s: library
    • Security Level: Public
    • Labels:
      None
    • Environment:
      I reproduced a bug on Linux Rad Hat 5.0 x64 and on Windows XP x32
      Couchbase server version 1.8.1
      libcouchbase version 2.0.1

      Description

      Start server with one node.
      Create many buckets, that uses all allowed memory -> Server have to chnage status on Pending (In my situation server stay in Pending for all time and can't change it to Up)

      After that try to connect to one of the bucket by calling lcb_connect.
      Call lcb_wait to wait for connection is done.
      As a result lcb_wait work infinitly and timeout doesn't happen

      Below I share call stack in Red Hat Linux:
      #0 0x00000034350d4473 in __epoll_wait_nocancel () from /lib64/libc.so.6
      #1 0x00002ad81b1dccc9 in ?? () from ./lib/libevent-2.0.so.5
      #2 0x00002ad81b1c9cdc in event_base_loop () from ./lib/libevent-2.0.so.5
      #3 0x00002ad8174c1dc6 in lcb_wait () from ./lib/libcouchbase.so.2
      #4 0x000000000043c0e1 in Couchbase::connect (this=0x60df508) at couchbase_loader_source/couchbase.cpp:152
      #5 0x000000000043c8b7 in connect_to_bucket (cbase=..., config=..., bucket_name=...) at couchbase_loader_source/couchbase.cpp:478
      #6 0x0000000000440924 in couchbase_loader::writer_thread::writer_thread (this=0x60df480, config=..., bucket_name=..., dbh=...) at couchbase_loader_source/writer_thread.cpp:25
      #7 0x000000000042168c in main (argc=1, argv=0x7fff22162028) at couchbase_loader_source/couchbase_loader.cpp:175

      1. cloader.rar
        1.97 MB
        Haster
      2. NMakefile_new
        5 kB
        Haster

        Issue Links

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

          Activity

          Haster Haster created issue -
          avsej Sergey Avseyev made changes -
          Field Original Value New Value
          Link This issue is duplicated by CCBC-167 [ CCBC-167 ]
          avsej Sergey Avseyev made changes -
          Fix Version/s 2.0.3 [ 10470 ]
          avsej Sergey Avseyev made changes -
          Status Open [ 1 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          avsej Sergey Avseyev made changes -
          Resolution Fixed [ 1 ]
          Status Resolved [ 5 ] Reopened [ 4 ]
          Haster Haster made changes -
          Attachment cloader.rar [ 16180 ]
          Attachment NMakefile_new [ 16181 ]
          avsej Sergey Avseyev made changes -
          Fix Version/s 2.0.4 [ 10500 ]
          Fix Version/s 2.0.3 [ 10470 ]
          avsej Sergey Avseyev made changes -
          Status Reopened [ 4 ] Resolved [ 5 ]
          Resolution Fixed [ 1 ]
          avsej Sergey Avseyev made changes -
          Status Resolved [ 5 ] Closed [ 6 ]
          brett19 Brett Lawson made changes -
          Workflow jira [ 23277 ] Couchbase SDK Workflow [ 43806 ]

            People

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

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes