Renchunbing / xmemcached

Automatically exported from code.google.com/p/xmemcached
Apache License 2.0
1 stars 0 forks source link

发现failure模式有点小问题 #112

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
发现failure模式有点小问题,
MemcachedClientBuilder builder = new XMemcachedClientBuilder(
                AddrUtil.getAddresses("192.168.8.122:11211 192.168.8.141:11211"));
builder.setFailureMode(true);
memcachedClient.set("user", 0, "Hello,xmemcached");
假设key: user 
经过hash后是分配到192.168.8.141上,但是在运行程序前,192.168.8
.141上的memcached并没启动,此时,就算设置了setFailureMode(true)��
�xmemcache不会抛个异常,而是将数据些到了192.168.8.122上了。。
。这并不是期望的结果啊,因为当192.168.8.141的memcached启动后�
��后续对user这个key的操作又转到了192.168.8.141上,这样用户会�
��较困惑。。。

Original issue reported on code.google.com by pingtechz on 18 Feb 2011 at 3:31

GoogleCodeExporter commented 9 years ago

Original comment by killme2...@gmail.com on 18 Feb 2011 at 3:36

GoogleCodeExporter commented 9 years ago
Fixed by 
https://github.com/killme2008/xmemcached/commit/c1622e19263813518f6d8ef06de87202
e578f2b7

Original comment by killme2...@gmail.com on 24 Mar 2011 at 4:10