Couchbase
  • Why NoSQL?
  • Couchbase Server
  • Download
  • Resources
  • Careers
Home | Forums | SDKs | SDKs

Sometimes lcb_wait function works infinitly (libcouchbase C library)

3 replies [Last post]
  • Login or register to post comments
Thu, 01/10/2013 - 12:39
Haster
Offline
Joined: 09/16/2012
Groups: None

Hello,
I use libcouchbase C library (version 2.0.1, Couchbase Server ver 1.8.1) and sometimes I have strange behaviour.
Usually problem happens after creating bucket (I use curl for it).
After that I try to connect to created bucket... and call lcb_wait function.
And it executes infinitly...
I investigate it a little and found, what the problem occures when in Couchbase server bucket loaded some times (in log there is note something like "bucket Name loader (3 times)").

And why lcb_wait works infinitly???
I add debug output and found that select function (on which event loop is based) returns 0 (that means that timeout happend) and after that timer is deleted... and than next time select calls, timeout is 0... that means that wait event infinitly, but events doesn't occurs.

What do you think about that problem?

P.S. Then I create many buckets in parallel, this bug occurs very often

Top
  • Login or register to post comments
Thu, 01/10/2013 - 13:03
avsej
avsej's picture
Offline
Joined: 06/15/2011
Groups: None

Thanks for report, I've copied it to jira tracker. http://www.couchbase.com/issues/browse/CCBC-167

__________________

Find me on FreeNode IRC in #libcouchbase channel

Top
  • Login or register to post comments
Thu, 01/10/2013 - 13:21
Haster
Offline
Joined: 09/16/2012
Groups: None

Hello, Sergey!

If you need some help (for example check patch or add some additional info) you are welcome.
If you need I can write about problem in more details on the Russian language.
English is difficult for me (also I talk to Norby about this bug and I registerd CCBC-147 bug, so I think that CCBC-147 and CCBC-167 are equal).

Top
  • Login or register to post comments
Thu, 01/10/2013 - 13:46
avsej
avsej's picture
Offline
Joined: 06/15/2011
Groups: None

Sure, feel free to contact me in jabber: sergey.avseyev@gmail.com

__________________

Find me on FreeNode IRC in #libcouchbase channel

Top
  • Login or register to post comments
  • Login or register to post comments
  • Login
  • Register

Company

  • About Us
  • Leadership
  • Customers
  • Partners
  • Contact Us

Product

  • Couchbase Server
  • Couchbase SDKs
  • Use Cases
  • Documentation
  • Forums

Open Source

  • Couchbase Project
  • Couchbase vs. CouchDB

Commercial

  • Subscriptions & Support
  • Training & Services

News

  • Blog
  • Newsletter
  • Press Releases
  • Buzz

Follow Us

    
  • Customer Login
  • Terms of Service
  • Privacy Policy
  • Trademark Policy
  • Site Map

© 2013 COUCHBASE All rights reserved.

Sign in to Couchbase Community

close
  • Create new account
  • Request new password
You are logging into the Forums, Wiki and Issue Tracker