[
https://jira.jboss.org/browse/ISPN-611?page=com.atlassian.jira.plugin.sys...
]
Galder Zamarreno commented on ISPN-611:
---------------------------------------
I think we have a problem here. I've just managed to replicate the issue with a simple
ruby client script and the client library mentioned:
MemCache::MemCacheError: unexpected response "VALUE galder 0 5 \r\n"
/Library/Ruby/Gems/1.8/gems/memcache-client-1.8.5/lib/memcache.rb:754:in
`cache_get'
This is coming from this part of the script:
unless keyline =~ /(\d+)\r/ then
server.close
raise MemCacheError, "unexpected response #{keyline.inspect}"
end
I don't understand the unless condition very well, but based on docu on the script,
it's expecting:
keyline = socket.gets # "VALUE <key> <flags>
<bytes>\r\n"
So, after bytes (which in the example is 5), I think it doesn't expect a space
character.
Now, the problem is that if I remove the space, the Memcached unit tests based on
Spymemcached fail :(, but the ruby script works fine.
I need to think through on what to do here. I'll check whether there's a more
recent Spymemcached version.
Memcached issues with ruby client
---------------------------------
Key: ISPN-611
URL:
https://jira.jboss.org/browse/ISPN-611
Project: Infinispan
Issue Type: Bug
Components: Cache Server
Affects Versions: 4.1.0.CR3
Environment: Centos 5.5, Java 6u21, Ruby on Rails 2.3.2, Ruby Enterprise Edition
20090520
Reporter: Tomaz Cerar
Assignee: Galder Zamarreno
Fix For: 4.1.0.Final
Attachments: infinispan_memcached.log
We have ROR application that uses MemCached for distributed cache.
As we have many issues with MemCached and its "clustering" we are considering
to move to Infinispan for many goodies it provides.
The problem is that some commands that are issued against memcahe infinispan server die
with error.
in ruby application we get errror:
ERROR -- : MemCacheError (unexpected response "VALUE views/semantic/1 0 674
\r\n"): unexpected response "VALUE views/semantic/1 0 674 \r\n"
and in infinispan log I can find:
2010-08-19 12:21:37,330 ERROR [org.infinispan.server.core.AbstractProtocolDecoder$]
(MemcachedServerWorker-1-7) Exception reported
java.nio.channels.ClosedChannelException
I will try to provide sample code to demonstrate error.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira