SDK 2.1.3: getAndLock not available for memcached buckets?


#1

Whenever I am using a memcached bucket, calling Bucket.getAndLock(...) throws a “COMMAND_UNAVAILABLE” exception.
Is getAndLock really not available for memcached buckets in general or is it an API problem? Because I only find two results on Google when searching for ‘couchbase “COMMAND_UNAVAILABLE”’.

Thanks.


#2

I believe it is expected but let’s ask @daschl just in case.


#3

I’m running into the same problem. Was this resolved?


#4

Correct, getAndLock is not available on the server for memcached buckets. I recommend you to either investigate CAS instead or move over to couchbase buckets if you really need it :slight_smile: