java MemcachedClient.mutate method never returns
Ray Krueger
raykrueger at gmail.com
Wed Mar 19 04:29:23 UTC 2008
On Tue, Mar 18, 2008 at 11:15 PM, Dustin Sallings <dustin at spy.net> wrote:
>
> On Mar 18, 2008, at 17:20, Ray Krueger wrote:
>
> > In testing the MemcachedClient.incr and decr functions I came across
> > two problems.
> >
> > 1) The internal mutate method uses latch.await() with no default
> > timeout, and no way to set a timeout.
>
> This seems like a general problem described here:
>
> http://code.google.com/p/spymemcached/issues/detail?id=4
>
> There's a certain point in time after which there's no point in
> waiting any longer. I imagine a reasonable default is somewhere
> around a second, but I imagine I could choose two people at random who
> didn't think it was reasonable and they wouldn't be able to decide
> whether it's too large or too small.
>
An overload that allowed passing a timeout would probably suffice.
Or an asyncIncr that returned a future :)
>
> > 2) Using incr never recovers from the instance it was using going
> > down.
>
>
> I filed this as a separate bug:
>
> http://code.google.com/p/spymemcached/issues/detail?id=11
>
> Definitely should fail properly, but this is a weakness in my test
> suite.
>
> --
> Dustin Sallings
>
>
>
>
More information about the memcached
mailing list