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

error creating index in tuqtng

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 3.0
    • 2.1.0
    • query
    • Security Level: Public
    • None

    Description

      1. No indexes
      2. Start tuqtng
      3. CREATE INDEX nameidx ON beer-sample(name) USING VIEW
      {
      "error":
      {
      "caller": "view_index:76",
      "cause": "Error executing view req at http://127.0.0.1:5984/beer-sample/_design/ddl_nameidx/_view/nameidx?end_key=%5B%22thing%22%2C%7B%7D%5D\u0026stale=false\u0026start_key=%5B%22thing%22%5D: 500 Internal Server Error -

      {\"error\":\"unknown_error\",\"reason\":\"view_undefined\"}

      \n",
      "code": 5000,
      "key": "Internal Error",
      "message": "Cannot create index nameidx"
      }
      }

      4. Despite the error, in the Couchbase UI I see the view
      5. If I try to drop it now, I get an error that it doesn't exist:

      DROP INDEX beer-sample.nameidx
      {
      "error":

      { "caller": "interpreted:44", "cause": "Index nameidx not found.", "code": 5000, "key": "Internal Error", "message": "" }

      }

      6. If I try to create it again:

      CREATE INDEX nameidx ON beer-sample(name) USING VIEW
      {
      "resultset": [

      { "id": "nameidx", "name": "nameidx" }

      ],
      "info": [

      { "caller": "http_response:150", "code": 100, "key": "total_rows", "message": "1" }

      ,

      { "caller": "http_response:152", "code": 101, "key": "total_elapsed_time", "message": "20.671349ms" }

      ]
      }

      This time it appears to work.

      Attachments

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

        Activity

          People

            iryna iryna
            mschoch Marty Schoch [X] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty