On Mar 28, 5:37 am, Stuart <
stuart.whi...@gmail.com> wrote:
> MemcachedClient memcachedClient = new MemcachedClient
> (AddrUtil.getAddresses("ngcwydev102:11211 ngcwydev103:11211
> ngcwydev104:11211 ngcwydev105:11211"));
> String value = (String) memcachedClient.get("foo");
> System.out.println("foo=" + value);
>
> Most of the time, "bar" is returned as expected. However, many times
> "null" is returned. Because I launched the memcached processes using -
> vv, I can see that, sure enough, when "bar" gets returned, one
> memcached service is handling the request, and when "null" gets
> returned, a different memcached service is handling the request.
>
> It appears the "foo" key is getting hashed differently during
> different runs of my client, resulting in it being sent to different
> memcached services. Is this behavior to be expected?
server sometimes.