Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
6.6.0
-
Enterprise Edition 6.6.0 build 7792
-
Untriaged
-
1
-
Unknown
-
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
Activity
Field | Original Value | New Value |
---|---|---|
Labels | triaged |
Sprint | CX Sprint 209 [ 1167 ] |
Rank | Ranked higher |
Status | Open [ 1 ] | In Progress [ 3 ] |
Priority | Major [ 3 ] | Critical [ 2 ] |
Link | This issue blocks MB-38724 [ MB-38724 ] |
Labels | triaged | approved-for-6.6.0 triaged |
Due Date | 24/Jul/20 |
Resolution | Fixed [ 1 ] | |
Status | In Progress [ 3 ] | Resolved [ 5 ] |
Labels | approved-for-6.6.0 triaged | approved-for-6.6.0 needs-functional-test triaged |
VERIFICATION STEPS |
1. Create a dataverse "Test".
2. 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" 3. CREATE DATASET airports ON `travel-sample` AT Test.myCbLink WHERE `type` = "airport"; 4. dataset created successfully. |
|
Assignee | Hussain Towaileb [ hussain.towaileb ] | Umang [ JIRAUSER24787 ] |
Status | Resolved [ 5 ] | Closed [ 6 ] |
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