Sometimes lcb_wait function works infinitly (libcouchbase C library)
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
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).
Sure, feel free to contact me in jabber: sergey.avseyev@gmail.com
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