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

[CX] Failed to open index with resource ID -1 since it does not exist

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • CBAS DP
    • CBAS DP
    • analytics
    • None
    • Untriaged
    • Centos 64-bit
    • No
    • CX Sprint 20

    Description

      1. Try curl command with dataverse already existing:
      [root@slv-s20301_c cbas-install]# curl -s --data pretty=true --data format=CLEAN_JSON --data-urlencode statement@file.txt http://localhost:8095/analytics/service
      {
      "requestID": "8aad417a-4a94-4ae5-b0aa-dfd0a2bc2706",
      "signature": "*",
      "errors": [

      { "code": "1", "msg": "A dataverse with this name couchbase already exists." }

      ],
      "status": "fatal",
      "metrics":

      { "elapsedTime": "3.417567ms", "executionTime": "2.534256ms", "resultCount": "0", "resultSize": "0" }

      }

      2. Add drop dataverse couchbase in file.txt
      Now file.txt contains:
      drop dataverse couchbase;
      create dataverse couchbase;
      use couchbase;
      create type `value` as open{};
      create type meta as open

      { id:string, vbid:int32, seq:int64, cas:int64, expiration:int32, flags:int32, rev:int64, lock:int32 }

      ;
      create dataset multiple(`value`) with meta(meta) primary key meta().id;
      create feed multiple_feed using `com.couchbase.analytics.CouchbaseConnectorFactory`(
      ("bucket"="multiple_table_db_2987_simple_table_1"),
      ("nodes"="127.0.0.1"),
      ("password"="")
      );
      connect feed multiple_feed to dataset multiple;

      3.Try the curl command again, I get the following error:
      [root@slv-s20301_c cbas-install]# curl -s --data pretty=true --data format=CLEAN_JSON --data-urlencode statement@file.txt http://localhost:8095/analytics/service
      {
      "requestID": "4f0ef865-7954-4939-9556-a52cd539581b",
      "signature": "*",
      "errors": [

      { "code": "1", "msg": "Failed to open index with resource ID -1 since it does not exist." }

      ],
      "status": "fatal",
      "metrics":

      { "elapsedTime": "9.467288ms", "executionTime": "8.807231ms", "resultCount": "0", "resultSize": "0" }

      }

      Uploading logs.

      Attachments

        1. drop.sqlpp
          0.5 kB
          Till Westmann
        2. logs.tar
          10 kB
          Prerna Manaktala
        3. nodrop.sqlpp
          0.5 kB
          Till Westmann
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            Prerna.Manaktala Prerna Manaktala (Inactive)
            Prerna.Manaktala Prerna Manaktala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 4h
                4h
                Remaining:
                Time Spent - 3h Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - 3h Remaining Estimate - 1h
                3h

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty