Skip to content

Uncaught exception in enqueueOperation #60

@jrray

Description

@jrray

The calls to mconn.enqueueOperation in SpyMemcachedIntegration can throw IllegalStateException when the queue is full:

java.lang.IllegalStateException: Timed out waiting to add Cmd: 1 Opaque: 229348 Key: XXX Cas: 0 Exp: 1556244278 Flags: 0 Data Length: 0(max wait=10000ms)
        at net.spy.memcached.protocol.TCPMemcachedNodeImpl.addOp(TCPMemcachedNodeImpl.java:362)
        at net.spy.memcached.MemcachedConnection.addOperation(MemcachedConnection.java:1278)
        at net.spy.memcached.MemcachedConnection.addOperation(MemcachedConnection.java:1240)
        at net.spy.memcached.MemcachedConnection.enqueueOperation(MemcachedConnection.java:1196)
        at shade.memcached.internals.SpyMemcachedIntegration.realAsyncSet(SpyMemcachedIntegration.scala:235)
        at shade.memcached.MemcachedImpl.set(MemcachedImpl.scala:60)

This ends up breaking the implied contract of always returning a Future when calling set, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions