roc230 / spymemcached

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

java.lang.AssertionError: IO Thread is not running #220

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What version of the product are you using? On what operating system?

Memcached version 1.4.2
spymemcached version 2.7.1
Ubuntu

Tell me more...

We have seen this error when run our application using memcached client:

java.lang.AssertionError: IO Thread is not running.
        at net.spy.memcached.MemcachedClient.checkState(MemcachedClient.java:436)
        at net.spy.memcached.MemcachedClient.addOp(MemcachedClient.java:449)
        at net.spy.memcached.MemcachedClient.asyncStore(MemcachedClient.java:487)
        at net.spy.memcached.MemcachedClient.set(MemcachedClient.java:908)
        at net.spy.memcached.MemcachedClient.set(MemcachedClient.java:114)
        ......

The MemcachedClient was created with the following settings:
new MemcachedClient (new ConnectionFactoryBuilder () //
                .setProtocol (Protocol.TEXT) //
                .setHashAlg (HashAlgorithm.KETAMA_HASH) //
                .setFailureMode (FailureMode.Redistribute) //
                .setLocatorType (Locator.CONSISTENT) //
                .setTranscoder ((Transcoder <Object>) transcoder).build (), //
                memcachedServers);

It is unpredictable and hard to reproduce, but we have seen this error several 
times. Looks like the thread was terminated by some uncaught exception.

Original issue reported on code.google.com by sunny201...@gmail.com on 21 Nov 2011 at 11:26

GoogleCodeExporter commented 9 years ago
There were some thread safety issues fixed in 2.7.2.  Unfortunately, there's 
not much there above to go on.  Was there an exception anywhere in the logs 
before the assertion?

Original comment by ingen...@gmail.com on 22 Nov 2011 at 4:30