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

CREATE DATASET AT dataverse.link does not recognize dataverse

    XMLWordPrintable

    Details

    • Triage:
      Untriaged
    • Story Points:
      1
    • Is this a Regression?:
      Unknown
    • Sprint:
      CX Sprint 209

      Description

      Assume that the Test dataverse exists.

      Create a remote link in the Test dataverse using the REST API:

      $ curl -v -u Administrator:password -X POST "http://localhost:8095/analytics/link?dataverse=Test&name=myCbLink&type=couchbase&hostname=remote:8091&username=Administrator&password=password&encryption=none"
      

      On localhost, create a dataset on the remote link:

      CREATE DATASET airports ON `travel-sample` AT Test.myCbLink WHERE `type` = "airport";
      

      The dataset is not created:

      [
        {
          "code": 24006,
          "msg": "Link Default.myCbLink does not exist",
          "query_from_user": "CREATE DATASET airports ON `travel-sample` AT Test.myCbLink WHERE `type` = \"airport\";"
        }
      ]
      

      Note that the error message states Default.myCbLink does not exist even though we specified AT Test.myCbLink.

      However, changing the default dataverse with USE works:

      USE Test;
      CREATE DATASET airports ON `travel-sample` AT Test.myCbLink WHERE `type` = "airport";
      

        Attachments

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

          Activity

          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-6.6.2-9599 contains cbas-core commit b3b2a01 with commit message:
          MB-40605: Use the correct dataverse when creating remote links

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-6.6.2-9599 contains cbas-core commit b3b2a01 with commit message: MB-40605 : Use the correct dataverse when creating remote links
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-7.0.0-2746 contains cbas-core commit b3b2a01 with commit message:
          MB-40605: Use the correct dataverse when creating remote links

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-7.0.0-2746 contains cbas-core commit b3b2a01 with commit message: MB-40605 : Use the correct dataverse when creating remote links
          Hide
          umang.agrawal Umang added a comment -

          verified with couchbase server build 6.6.0-7897

          Show
          umang.agrawal Umang added a comment - verified with couchbase server build 6.6.0-7897
          Hide
          build-team Couchbase Build Team added a comment -

          Build couchbase-server-6.6.0-7895 contains cbas-core commit b3b2a01 with commit message:
          MB-40605: Use the correct dataverse when creating remote links

          Show
          build-team Couchbase Build Team added a comment - Build couchbase-server-6.6.0-7895 contains cbas-core commit b3b2a01 with commit message: MB-40605 : Use the correct dataverse when creating remote links

            People

            Assignee:
            umang.agrawal Umang
            Reporter:
            simon.dew Simon Dew
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Due:
              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty