Spymemcached + membase not committing Writes to the Disk
Hi all,
I have been following the tutorial: http://sujee.net/tech/articles/membase-tutorial-1/ which talks about using spymemcached (v 2.5) with java inorder to write data to disk using Membase.
I set up membase and followed the tutorial.
MemcachedClient cache = new MemcachedClient(new InetSocketAddress(server, port));
where server = localhost and port = 11211.
Everything goes good when I set some datachunk (which is apparently getting written to the disk) and get the data for the same key. I feel this data is rather getting read from the cache (memcached layer) and not from the membase.
Therefore I tried to write different batches of datasets (say key 0-100000, 100000-200000 etc..) and then I tried to get the data corresponding to first range of keys (0-100000) and it returned "null". This, according to me, should only happen if the data has not been committed to the disk and the client is trying to read the data from the the cache and is unable to find it.
I am a newbie at Membase. Kindly let me know what could be the problem or how to ensure that data is actually written to membase.
Thanks,
Matthew
Matt, I "think" the cause for this confusion is related to your other post describing the writing of data into both a memcached bucket and a Membase bucket.
Can you repeat the test with just writing into the Membase bucket and let me know the results?
For those of your following along: http://www.couchbase.org/forums/thread/spymemcached-client-can-not-acces...
Forum support is great for free but sometimes you need a guaranteed response time and dedicated resources for your questions or issues.
Consider purchasing enterprise-level support from Couchbase: http://www.couchbase.com/products-and-services/overview
Call or email "sales -at- couchbase-dot- com" today!