Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-3025

memcachetest aborts on textual get SERVER_ERROR

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Blocker
    • 2010-12-16
    • None
    • build
    • Security Level: Public
    • None

    Description

      Now that moxi responds with SERVER_ERROR instead of END for a membase bucket type when a node is down, memcachetest aborts.

      (Perhaps this END vs SERVER_ERROR vs just-close-the-connection needs a rethink. But that's another day.)

      Here's a quick fix...

      diff --git a/libmemc.c b/libmemc.c
      index f734a97..cc9af37 100644
      — a/libmemc.c
      +++ b/libmemc.c
      @@ -743,6 +743,8 @@ static int textual_get(struct Server* server, struct Item* i
      return 0;
      } else if (strstr(server->buffer, "END") == server->buffer)

      { return -1; + }

      else if (strstr(server->buffer, "SERVER_ERROR") == server->buffer)

      { + return -1; }

      abort();

      Attachments

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

        Activity

          People

            ingenthr Matt Ingenthron
            steve Steve Yen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty