mgalushka / spymemcached

Automatically exported from code.google.com/p/spymemcached
0 stars 0 forks source link

NPE happening in TCPMemcachedNodeImpl.fillWriteBuffer under heavy load #304

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I'm using spymemcached v2.10.3

Under heavy load, I'm seeing NullPointerException happening from time to time, 
effectively killing the MemcachedIO thread every time the exception is thrown.

java.lang.NullPointerException
    at net.spy.memcached.protocol.TCPMemcachedNodeImpl.fillWriteBuffer(TCPMemcachedNodeImpl.java:198)
    at net.spy.memcached.MemcachedConnection.handleWrites(MemcachedConnection.java:752)
    at net.spy.memcached.MemcachedConnection.handleInputQueue(MemcachedConnection.java:534)
    at net.spy.memcached.MemcachedConnection.handleIO(MemcachedConnection.java:387)
    at net.spy.memcached.MemcachedConnection.run(MemcachedConnection.java:1334)

Judging from the assert in line TCPMemcachedNodeImpl.java:197, I suppose that 
the operation's buffer should never be null.

Under what specific conditions would the operation's buffer to be null, and are 
there workarounds for this?

Also, are there any plans to release patch 
http://review.couchbase.org/#/c/18693/ ? It would've prevented the Memcached IO 
thread from dying and continue other operations.

Original issue reported on code.google.com by lionel...@gmail.com on 18 Jun 2014 at 11:41