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

Having memcached bucket will cause 'select * from system:keyspaces' will fail.

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.1.2, 4.5.0
    • 4.1.0, 4.5.0
    • query
    • None
    • Untriaged
    • Unknown

    Description

      From Centeredge Software:
      https://forums.couchbase.com/t/errors-executing-selecting-from-system-keyspaces-with-memcached-bucket-in-cluster/7974

      If there is a Memcached bucket in your cluster, the following query always returns errors:

      SELECT * FROM system:keyspaces
      Example result:

      {
      "requestID": "53268848-f314-4925-aa01-955ce572c89f",
      "signature":

      { "*": "*" }

      ,
      "results": [
      {
      "keyspaces":

      { "datastore_id": "http://127.0.0.1:8091", "id": "beer-sample", "name": "beer-sample", "namespace_id": "default" }

      },
      {
      "keyspaces":

      { "datastore_id": "http://127.0.0.1:8091", "id": "default", "name": "default", "namespace_id": "default" }

      }
      ],
      "errors": [

      { "code": 12013, "msg": "This bucket type is not supported memcached" }

      ],
      "status": "errors",
      "metrics":

      { "elapsedTime": "36.9995ms", "executionTime": "36.9995ms", "resultCount": 2, "resultSize": 446, "errorCount": 1 }

      }
      While the buckets are returned in the "results", the "errors" section and the "status" result indicate a failure. This can be very difficult for a consumer to interpret, as there is no way to differentiate between a fatal error and this error, which is really more of a warning. Since Memcached buckets don't support N1QL or indices, it seems like it would make more sense to just exclude them from the query without error.

      This is currently giving us problems with the Simba ODBC driver, which we are using to interface to a business intelligence system. We are unable to do schema imports while there is a Memcached bucket in our cluster.

      I have tested this on both 4.0 and 4.5DP.

      Thanks,
      Brant

      Attachments

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

        Activity

          People

            Prerna.Manaktala Prerna Manaktala (Inactive)
            keshav Keshav Murthy
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty