java memcached client

Greg Whalin gwhalin at gmail.com
Fri Dec 28 21:02:56 UTC 2007


Sorry for not responding sooner.  I have been out of town for the holidays.
This does not correspond to any known or reported bug in the Java client I
am maintaining and it is in heavy use at quite a few heavy installations.
Not saying that it is out of the question, but definitely not something I am
aware of.  Looking at the debug, the client is simply spitting out the
response it received from the server.  How have you configured your client
install (did you follow the HOWTO document from the site)?

gw

On Dec 21, 2007 6:35 AM, André Cruz <andre.cruz at co.sapo.pt> wrote:

> Hello all.
>
> I've been using the java memcached API (v1.6[.1]) (
> http://www.whalin.com/memcached/
> ) for some months now. Lately I've been seeing a strange problem.
>
> Some adds fail (return false) but when I try to get the key I was
> trying to add, the key is there and with the correct value. And no,
> the key was not there before the add.
> Here are some logs:
>
> 2007-12-19 23:47:22,623 [TP-Processor45] DEBUG
> pt.sapo.storage.MemcacheStorer - Preparing to store session email =
> XXX at sapo.pt
>  date = Wed Dec 19 23:47:22 WET 2007
> 2007-12-19 23:47:22,623 [TP-Processor45] INFO
> com.danga.MemCached.MemCachedClient - ++++ serializing for key:
> sapo_sso_session%3A1ca2fabf-dd55-4a2d-93d3-90bc7f44368b for class:
> pt.sapo.model.SSOSession
> 2007-12-19 23:47:22,623 [TP-Processor45] INFO
> com.danga.MemCached.MemCachedClient - ++++ memcache cmd (result code):
> add sapo_sso_session%3A1ca2fabf-dd55-4a2d-93d3-90bc7f44368b 8
> 1198111642 165
> (NOT_FOUND)
> 2007-12-19 23:47:22,623 [TP-Processor45] ERROR
> com.danga.MemCached.MemCachedClient - ++++ error storing data in cache
> for key: sapo_sso_session%3A1ca2fabf-dd55-4a2d-93d3-90bc7f44368b --
> length: 165
> 2007-12-19 23:47:22,623 [TP-Processor45] ERROR
> com.danga.MemCached.MemCachedClient - NOT_FOUND
> 2007-12-19 23:47:22,624 [TP-Processor45] ERROR
> pt.sapo.storage.MemcacheStorer - Add returned false for key
> sapo_sso_session:1ca2fabf-dd55-4a2d-93d3-90bc7f44368b
>
> It seems the add is returning NOT_FOUND?! This return value is not in
> the memcached API documentation so it seems strange. I have 8 memcache
> servers configured, maybe some concurrency problems between the
> threads and this is the result to another command?
>
> I've tried to contact Greg Whalin but got no answer. Has anyone seen
> this problem before?
>
> The memcache server version is 1.1.12, a bit old, but I checked the
> changelog and didn't find anything related to a bug of this kind so it
> seems it's in the java API I'm using.
>
> Best regards,
> André Cruz




-- 
Greg Whalin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.danga.com/pipermail/memcached/attachments/20071228/56f59191/attachment.htm 


More information about the memcached mailing list