Couchbase Questions: C SDK

Have a Question? Get it answered by our community

mikearrgh's picture
Asked 8 months 2 weeks ago
Latest activity 6 months 3 weeks ago

What is the right way of reconnecting upon initial connect error?

If couchbase server is down at the time of first lcb_connect call then libcouchbase will not automatically reconnect.

Right now I use workaround, by issuing another call to lcb_connect after some time (when server is possibly back again). It helps, but there are problems:

1. No...

bateau020's picture
Asked 8 months 3 weeks ago
Latest activity 8 months 3 weeks ago

exptime and append

Hi,
Found behaviour that is somewhat strange.

Case:
do a set, with exptime 20
wait 1 sec
do a touch with exptime 2, overriding the previous exptime
wait 3 secs
the document is no longer there, and that looks like wanted behaviour....

bateau020's picture
Asked 8 months 3 weeks ago
Latest activity 8 months 3 weeks ago

omission in lcb_touch man page?

Hi, https://github.com/couchbase/libcouchbase/blob/master/man/man3couchbase/...
seems to miss out completely the exptime parameter, the single parameter that this function seems...

bateau020's picture
Asked 8 months 3 weeks ago
Latest activity 8 months 3 weeks ago

reason for lcb_update_server_timer

Hi,
In the case where one wants to run its own event loop, one is tempted to replace the lcb_wait calls by stuff like event_base_loop(evbase, 0) or even event_base_loop(evbase, EVLOOP_NONBLOCK) (when the latter is used, it provides a very nice performance improvement by the way). But that...

bateau020's picture
Asked 8 months 3 weeks ago
Latest activity 8 months 3 weeks ago

append for non existing documents

Hi,
Just hoping that a kind soul sees the value of my use case.

I have a situation where I need to group huge amounts of very small pieces of information together. Views/reduce are not an option to me because of the response times and the sheer volume of the information involved....

jygan's picture
Asked 8 months 4 weeks ago
Latest activity 8 months 3 weeks ago

{"error":"bad_request","reason":"attachments not supported in Couchbase"}

hi,
i try to use lcb_make_http_request to get data from view, it return LCB_SUCCESS but the response is :
{"error":"bad_request","reason":"attachments not supported in Couchbase"}
what this mean?
I run the uri in web browser, i can get result
host:8092/bucketname/...

melindmi's picture
Asked 9 months 1 week ago
Latest activity 6 months 3 weeks ago

lcb_make_http_request is opening a new socket for each call

Hello,

I am doing some tests for the views in Couchbase . To query a view I am using lcb_make_http_request method. The problem I have encountered is that for each call of the lcb_make_http_request a new tcp socked is opened on the client side.
The connection instance is created only...

melindmi's picture
Asked 9 months 1 week ago
Latest activity 9 months 1 week ago

lcb_make_http_request is failing and the wait is hanging forever

Hello,

When I execute lcb_make_http_request in a loop, after a number of executions (which is variable) it will return a fail and the wait will hang forever.
Here is the code:

    cmd.
...
literoshan's picture
Asked 9 months 2 weeks ago
Latest activity 9 months 1 week ago

Couchbase Tools shipped with the Couchbase C Client Library (libcouchbase) problem

hi,

installed 2.1.0 couchbase x64 on windows8 (with visualc++2012). the couchbase console seems fine, everything starts as usual, and server shows as 'up'.

the problem is when i try to use 'cbc stats', it gives me the following error:

ERROR: Connection failure...

venk_couchbase's picture
Asked 9 months 2 weeks ago
Latest activity 9 months 1 week ago

Getting SERVERERROR when I tried communicating with Memcached C Library using memcached_add()

Hi,
I am trying to establish connection from Memcached C Client to Couchbase server. I see connection object created successfully ( Memcached object created Successfully:: 0x1176010 ), but I am getting the SERVER ERROR when I tried memcached_add() with 10 bytes of data.
May I know...

Pages