[CCBC-167] lcb_wait() waits infinitely Created: 10/Jan/13 Updated: 06/Feb/13 Resolved: 10/Jan/13 |
|
| Status: | Closed |
| Project: | Couchbase C client library libcouchbase |
| Component/s: | None |
| Affects Version/s: | 2.0.1 |
| Fix Version/s: | None |
| Security Level: | Public |
| Type: | Bug | Priority: | Major |
| Reporter: | Sergey Avseyev | Assignee: | Sergey Avseyev |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Description |
|
From http://www.couchbase.com/forums/comment/reply/1002656
> 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 |