java.lang.IllegalStateException: No read operation

159 views
Skip to first unread message

Trevor

unread,
Aug 5, 2009, 5:03:08 AM8/5/09
to spymemcached
I am trying to throw a whole bunch of reads at spymemcached via
asyncGet and letting spymemcached combine them in multi-get requests
as described in Optimizations on the wiki. If I do too many requests
(a few thousand) I consistently get this error. Am I overflowing a
buffer somewhere and if so can I increase it's size?

2009-08-05 04:57:25.469 INFO net.spy.memcached.MemcachedConnection:
Reconnecting due to exception on {QA sa=tuple2.bos1.example.com/
10.10.2.131:11212, #Rops=1, #Wops=287, #iq=0, topRop=null,
topWop=net.spy.memcached.protocol.binary.OptimizedGetImpl@1a330e4,
toWrite=16384, interested=5}
java.lang.IllegalStateException: No read operation.
at net.spy.memcached.MemcachedConnection.handleReads
(MemcachedConnection.java:359)
at net.spy.memcached.MemcachedConnection.handleIO
(MemcachedConnection.java:305)
at net.spy.memcached.MemcachedConnection.handleIO
(MemcachedConnection.java:192)
at net.spy.memcached.MemcachedClient.run(MemcachedClient.java:1444)
2009-08-05 04:57:25.469 WARN net.spy.memcached.MemcachedConnection:
Closing, and reopening {QA sa=tuple2.bos1. example.com/
10.10.2.131:11212, #Rops=1, #Wops=287, #iq=46, topRop=null,
topWop=net.spy.memcached.protocol.binary.OptimizedGetImpl@1a330e4,
toWrite=16384, interested=5}, attempt 0.

Trevor

Dustin

unread,
Aug 10, 2009, 4:22:52 PM8/10/09
to spymemcached

On Aug 5, 2:03 am, Trevor <trevordkra...@gmail.com> wrote:
> I am trying to throw a whole bunch of reads at spymemcached via
> asyncGet and letting spymemcached combine them in multi-get requests
> as described in Optimizations on the wiki. If I do too many requests
> (a few thousand) I consistently get this error. Am I overflowing a
> buffer somewhere and if so can I increase it's size?

This is a particularly disturbing condition. It basically means
unexpected data came in over the wire. Why this happens is a mystery
to me at the moment. I've got a few bug fixes needing to go into the
next release, though.

Trevor

unread,
Aug 31, 2009, 7:58:13 AM8/31/09
to spymemcached
this happens running memcached 1.4.1 also - I was hopeful it was
related to bug http://code.google.com/p/memcached/issues/detail?id=72
but apparently not since this is fixed in 1.4.1.

Trevor

Eugene

unread,
Sep 1, 2009, 5:39:22 AM9/1/09
to spymem...@googlegroups.com
Hello all !
I use memcached-1.2.8 and spymemcached-2.3.1
I put JSON into memcached OK.
But then I receive garbage after GET from memcached:
-------------------------------------------------------------------------------------
GET /portal-facade-ng/v1/vod/categories/168 HTTP/1.1
Host: 172.20.1.183
User-Agent: Mozilla/5.0 (X11; U; Linux sh4;
chrome://navigator/locale/navigator.properties; rv:1.8) Gecko/20080417
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate
Keep-Alive: 300
Connection: keep-alive
Cookie: JSESSIONID=8DA22E16808D4658D041183473A71953

-----------------------------------------------------------------------------------
HTTP/1.1 200 OK
Server: nginx/0.6.36
Date: Tue, 01 Sep 2009 09:22:05 GMT
Content-Type: application/x-javascript;charset=UTF-8
Transfer-Encoding: chunked
Connection: keep-alive
Keep-Alive: timeout=20
X-Powered-By: Servlet 2.4; JBoss-4.2.2.GA (build: SVNTag=JBoss_4_2_2_GA
date=200710221139)/Tomcat-5.5
cache-control: no-cache
Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept
Accept-Ranges: bytes

2a0
data=[{"id":4,"count":5,"name":"........","display":"<div
class='vod_movies_category_name'>........<\/div><div
class='vod_movies_category_count'>5<\/div>"},
{"id":7,"count":3,"name":"....................","display":"<div
class='vod_movies_category_name'>....................<\/div><div
class='vod_movies_category_count'>3<\/div>"},
{"id":0,"count":1,"name":"..................","display":"<div
class='vod_movies_category_name'>..................<\/div><div
class='vod_movies_category_count'>1<\/div>"},
{"id":-1,"count":1,"name":"..................","display":"<div
class='vod_movies_category_name'>..................<\/div><div
class='vod_movies_category_count'>1<\/div>"}];
0

----------------
garbage: "2ao" before JSON and "0" after JSON.

My browser failed during eval this JSON.

Please, help me.
--
Best Regards, Eugene Batogov
_______________________________________

Reply all
Reply to author
Forward
0 new messages