Uploaded image for project: 'Couchbase node.js Client Library'
  1. Couchbase node.js Client Library
  2. JSCBC-972

Unable to drop primary index

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • 3.x, 4.x
    • 3.2.4
    • None
    • None
    • 1

    Description

      Steps to reproduce:

      Using Node.js SDK 3.2.4, I was trying to drop the default '#primary' index as shown below:

       await cluster.queryIndexes().dropPrimaryIndex('travel-sample') 

      But I got the following error:

      ParsingFailureError: parsing failure
          at Object.translateCppError (/Users/mariashodunke/Couchbase/docs/docs-sdk-nodejs/node_modules/couchbase/dist/bindingutilities.js:194:20)
          at /Users/mariashodunke/Couchbase/docs/docs-sdk-nodejs/node_modules/couchbase/dist/connection.js:248:54 {
        cause: LibcouchbaseError: libcouchbase error 208
            at Object.translateCppError (/Users/mariashodunke/Couchbase/docs/docs-sdk-nodejs/node_modules/couchbase/dist/bindingutilities.js:174:21)
            at /Users/mariashodunke/Couchbase/docs/docs-sdk-nodejs/node_modules/couchbase/dist/connection.js:248:54 {
          code: 208
        },
        context: QueryErrorContext {
          first_error_code: 3000,
          first_error_message: 'syntax error - at `travel-sample`',
          statement: 'DROP PRIMARY INDEX `travel-sample`',
          client_context_id: 'b780234f8a59b139',
          parameters: '',
          http_response_code: 400,
          http_response_body: ''
        }
      } 

      Expected Result:

      The default '#primary' index should be deleted

      Attachments

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

        Activity

          People

            brett19 Brett Lawson
            maria.shodunke Maria Shodunke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty