wsy495 / xmemcached

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

调用invalidateNamespace再次取值的时候报错 #295

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
不知道什么情况,在调用invalidateNamespace后,再次get或set就会�
��错,如下:
WARN  [2014-10-22 03:55:16,184] 
com.google.code.yanf4j.core.impl.AbstractController: Add a session: 
127.0.0.1:11211
java.lang.IllegalStateException: Namespace key already has value.The key 
is:namespace:OBJID-PREVIEWFile,and the value is:4294967296   
    at net.rubyeye.xmemcached.XMemcachedClient.getNamespace(XMemcachedClient.java:2710)
    at net.rubyeye.xmemcached.XMemcachedClient.preProcessKey(XMemcachedClient.java:2663)
    at net.rubyeye.xmemcached.XMemcachedClient.get0(XMemcachedClient.java:1055)
    at net.rubyeye.xmemcached.XMemcachedClient.get(XMemcachedClient.java:1016)
    at net.rubyeye.xmemcached.XMemcachedClient.get(XMemcachedClient.java:1027)
    at net.rubyeye.xmemcached.XMemcachedClient.get(XMemcachedClient.java:1049)

后来经过跟踪发现,在调用fetch0方法时,一旦调用invalidateName
space方法后,再次取得ns的值的时候,后面会多了三个空字符�
��32),所以导致不是数字,请问是哪儿有问题?
补充:我用的是text协议,谢谢

Original issue reported on code.google.com by yuanxul...@gmail.com on 22 Oct 2014 at 4:09