Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

store problems on windows cluster #7

Open
osblinnikov opened this issue May 21, 2012 · 0 comments
Open

store problems on windows cluster #7

osblinnikov opened this issue May 21, 2012 · 0 comments

Comments

@osblinnikov
Copy link

Hello everyone!
Last week I've tried to store key-value pairs in the couchbase cluster on windows xp and 7, from C++ program using libcouchbase connector.

I use Visual Studio C++ 2010 Express
To build libcouchbase I use required libraries below:
membase-libisasl-1.0.0-0-gd078c0c
membase-libvbucket-1.8.0.3-5-g42dc254
include dir from memcached-memcached-1.6.0-beta1-77-ge70f5ac
couchbase-libcouchbase-1.1.0dp2-12-g4f9d2dc
I also tried couchbase-libcouchbase-1.0.3-2-g022693a and others
C code was taken from the example: http://blog.couchbase.com/so-how-do-i-use-libcouchbase

  1. When I have only one node in the couchbase cluster (my PC or whatever remote machine) I have the following problem:
    a) Connection often can't be established from the first attempt (It could happen from second, thrid etc. attempt).
    But when the connection is established my writing into the couchbase is successful (and really fast).
  2. When I have two or more nodes in the couchbase cluster. In addition to the a) problem I have:
    b) storage_callback returns error 11 (ETMPFAIL)
    If I make reconnect after this error and store data again I'm always have:
    c) sticking in the libcouchbase_wait(instance) after libcouchbase_store function.

After tracing the sticking problem into the libcouchbase I found the point of jam:
libcouchbase/src/plugin-win32.c
libcouchbase_io_run_event_loop(struct libcouchbase_io_opt_st *iops), in the select function (when t is NULL select listens forever :( ).

And finaly interesting thing,
d) when select get stuck and I'm trying to 'fail over' one of the nodes from the cluster, libcouchbase throws uncatched exeption of read violation (of course my program crashed)

PS.
I'm sure that the cluster well-configured, because I've used Java connector for data storing and it is successfuly writing to all nodes of cluster. Our project should be as fast as possible thus I prefer to use libcouchbase.
Thank you for your help!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant