tag:blogger.com,1999:blog-7638694470910246382.post4267828052348509921..comments2024-01-04T11:42:08.211+01:00Comments on Trond Norbye's Weblog: So how do I use this "libcouchbase"?Anonymoushttp://www.blogger.com/profile/14981676567908297584noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-7638694470910246382.post-32414365454290069392013-06-14T10:08:49.844+02:002013-06-14T10:08:49.844+02:00No, items are lazily expired.No, items are lazily expired.Anonymoushttps://www.blogger.com/profile/14981676567908297584noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-18790840029807983662013-06-14T08:46:49.334+02:002013-06-14T08:46:49.334+02:00Is there an expiry callback available - I would li...Is there an expiry callback available - I would like to get the item that expired and log it.BInithBhttps://www.blogger.com/profile/00508835217664415968noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-50881943920988240632012-12-06T11:19:11.808+01:002012-12-06T11:19:11.808+01:00oh, that's to say not only the lcb_error_callb...oh, that's to say not only the lcb_error_callback will be invoked but also the normal callback I set.<br /><br />So i can handle the timeout error in the normal callback instead of in the lcb_error_callback.<br /><br />Thanks.Mouhttps://www.blogger.com/profile/04559332322607481987noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-88081100192054765212012-12-06T11:18:20.217+01:002012-12-06T11:18:20.217+01:00This comment has been removed by the author.Mouhttps://www.blogger.com/profile/04559332322607481987noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-85909801276157970392012-12-06T11:07:42.827+01:002012-12-06T11:07:42.827+01:00The callback for the data requests include the key...The callback for the data requests include the key so you should be able to figure out which document failed...Anonymoushttps://www.blogger.com/profile/14981676567908297584noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-52574062294988914172012-12-06T10:33:30.579+01:002012-12-06T10:33:30.579+01:00In my program, it is designed to set one common ca...In my program, it is designed to set one common callback of errors for a batch of request. So then, it seems that this design can not work if I want to pick out which requset encounters timeout.Mouhttps://www.blogger.com/profile/04559332322607481987noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-72343861504888262992012-12-06T09:16:33.660+01:002012-12-06T09:16:33.660+01:00Look in the per-command callback that is called?Look in the per-command callback that is called?Anonymoushttps://www.blogger.com/profile/14981676567908297584noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-73924964336947862092012-12-06T08:47:29.382+01:002012-12-06T08:47:29.382+01:00REF:
/**
* The error callback called when we don&#...REF:<br />/**<br />* The error callback called when we don't have a request context.<br />* This callback may be called when we encounter memory/network<br />* error(s), and we can't map it directly to an operation.<br />*<br />* @param instance The instance that encountered the problem<br />* @param error The error we encountered<br />* @param errinfo An optional string with more information about<br />* the error (if available)<br />*/<br />typedef void (*lcb_error_callback)(lcb_t instance,<br />lcb_error_t error,<br />const char *errinfo);<br /><br />In this interface, I think, the information is not enough to figure out which operation encountered a timeout.<br /><br />Forgive my ignorance, would you please show me a simple example how to figure out the timeout operation.Mouhttps://www.blogger.com/profile/04559332322607481987noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-43507900297973739052012-12-06T08:45:38.095+01:002012-12-06T08:45:38.095+01:00This comment has been removed by the author.Mouhttps://www.blogger.com/profile/04559332322607481987noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-59472095604359983342012-12-06T06:29:26.631+01:002012-12-06T06:29:26.631+01:00You have to manually figure out what the correct a...You have to manually figure out what the correct action is during a timeout for your application. It could be that timeouts arent appropriate, and you should just increase the timeout value, or you could want to fallback to some other action or just retry the operation. Anonymoushttps://www.blogger.com/profile/14981676567908297584noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-14551461778857713002012-12-04T11:02:13.305+01:002012-12-04T11:02:13.305+01:00REF: "As you see from the above snippet libco...REF: "As you see from the above snippet libcouchbase will call the error_callback whenever a timeout occurs, but we just want to retry the operation. If we encounter a real error we print out an error message and terminate the program."<br /><br />How to retry when timeout occurs? <br />Just like the example, we drop LIBCOUCHBASE_ETIMEDOUT, then it will retry itself? or need further processing ?Mouhttps://www.blogger.com/profile/04559332322607481987noreply@blogger.comtag:blogger.com,1999:blog-7638694470910246382.post-33592812346491223702012-04-09T13:31:15.705+02:002012-04-09T13:31:15.705+02:00I was wondering if there are going to be further u...I was wondering if there are going to be further updates on libcouchbase for C++.<br /><br />such as "append/prepand" APIs or any further updates on API Documents... Wishing that libcouchbase could have more APIs like spymemcached of JAVA<br /><br />Thank you :Dsang jahttps://www.blogger.com/profile/10011474799058133996noreply@blogger.com