Uploaded image for project: 'Spymemcached Java Client'
  1. Spymemcached Java Client
  2. SPY-196

Error response causes NPE + MemcachedIO thread death

    XMLWordPrintable

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.11.4, 2.12.3
    • None
    • Core
    • None

    Description

      As explained and fixed in [this pull request|https://github.com/couchbase/spymemcached/pull/38], if there is a payload error code from the memcached server (such as ERR_2BIG, ERR_BUSY, etc), the operation transitions to COMPLETED unexpectedly; if there are still pending writes for that operation, the attempt to send them will cause a NPE to be thrown and ultimately the MemcachedIO thread will die and all IO will cease irrecoverably because the API will continue to accept requests without signaling error.

      This is a difficult to detect without a global thread exception handler.

      This has been the root cause of a mysterious performance degradation issue in production for us for over a year and the linked PR resolves it. I am posting this issue here with the hope that it gets more visibility as the github issue tracker doesn't seem to have much couchbase activity.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          Can we get a resolution on this issue? 

          nishant1990 Nishant Agarwal (Inactive) added a comment - Can we get a resolution on this issue? 

          People

            daschl Michael Nitschinger
            favila Francis Avila
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty