Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-1816

Analytics Index Manager does not work with Analytics Scopes

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 3.1.5
    • None
    • None
    • 1

    Description

      There are a number of the Analytics Index Manager functions that do not work with Analytics Scopes/Dataverses. For example, trying to disconnect or drop a dataverse with the name "myBucket.myScope" fails with DataverseNotFoundException and message: "Cannot find analytics scope with name `myBucket.myScope`..."

      For example, the SDK is sending this on disconnectLink:
      DISCONNECT LINK `myBucket.myScope`.`Local`

      But the bucket and scope need to be delimited with the backticks, like:
      DISCONNECT LINK `myBucket`.`myScope`.`Local`

      The same issue is present with dropDataverse.

      It is also impossible to add these backticks as a user due to the dataverse name passing through the quote function, giving an InvalidArgumentExcpetion.

      Users can of course use the Analytics Query directly to do all these operations so does not technically block users, but does make the AnalyticsIndexManager unworkable for CC.

      Attachments

        Issue Links

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

          Activity

            will.broadbelt Will Broadbelt created issue -
            will.broadbelt Will Broadbelt made changes -
            Field Original Value New Value
            Description There are a number of the Analytics Index Manager functions that do not work with Analytics Scopes/Dataverses. For example, trying to disconnect or drop a dataverse with the name "myBucket.myScope" fails with DataverseNotFoundException and message: "Cannot find analytics scope with name `myBucket.myScope`..."

            For example, the SDK is sending this on disconnectLink:
            *DISCONNECT LINK `myBucket.myScope`.`Local`
            *
            But the bucket and scope need to be delimited with the backticks, like:
            *DISCONNECT LINK `myBucket`.`myScope`.`Local`
            *
            The same issue is present with dropDataverse.

            It is also impossible to add these backticks as a user due to the dataverse name passing through the [quote|https://github.com/couchbase/couchbase-jvm-clients/blob/55d5dcaacf726500fd3c7b237744ec89bbfb2254/java-client/src/main/java/com/couchbase/client/java/manager/analytics/AsyncAnalyticsIndexManager.java#L362] function, giving an InvalidArgumentExcpetion.

            Users can of course use the Analytics Query directly to do all these operations so does not technically block users, but does make the AnalyticsIndexManager unworkable for CC.
            There are a number of the Analytics Index Manager functions that do not work with Analytics Scopes/Dataverses. For example, trying to disconnect or drop a dataverse with the name "myBucket.myScope" fails with DataverseNotFoundException and message: "Cannot find analytics scope with name `myBucket.myScope`..."

            For example, the SDK is sending this on disconnectLink:
            DISCONNECT LINK `myBucket.myScope`.`Local`

            But the bucket and scope need to be delimited with the backticks, like:
            DISCONNECT LINK `myBucket`.`myScope`.`Local`

            The same issue is present with dropDataverse.

            It is also impossible to add these backticks as a user due to the dataverse name passing through the [quote|https://github.com/couchbase/couchbase-jvm-clients/blob/55d5dcaacf726500fd3c7b237744ec89bbfb2254/java-client/src/main/java/com/couchbase/client/java/manager/analytics/AsyncAnalyticsIndexManager.java#L362] function, giving an InvalidArgumentExcpetion.

            Users can of course use the Analytics Query directly to do all these operations so does not technically block users, but does make the AnalyticsIndexManager unworkable for CC.
            will.broadbelt Will Broadbelt made changes -
            Link This issue relates to SDKQE-2315 [ SDKQE-2315 ]
            daschl Michael Nitschinger made changes -
            Assignee Michael Nitschinger [ daschl ] David Nault [ david.nault ]

            David Nault assigning to you since at the same time you've been working on JCBC-1817

            daschl Michael Nitschinger added a comment - David Nault assigning to you since at the same time you've been working on JCBC-1817
            daschl Michael Nitschinger made changes -
            Fix Version/s 3.1.6 [ 17466 ]
            david.nault David Nault added a comment -

            Will Broadbelt Thank you for the investigation and write-up. I think this is the same issue as JCBC-1649, so I'll close this as a duplicate. 

            Once it's fixed, the management API will allow specifying dataverse names with slashes between components. For example: "myBucket/myScope".

            david.nault David Nault added a comment - Will Broadbelt Thank you for the investigation and write-up. I think this is the same issue as JCBC-1649 , so I'll close this as a duplicate.  Once it's fixed, the management API will allow specifying dataverse names with slashes between components. For example: "myBucket/myScope".
            david.nault David Nault made changes -
            Fix Version/s 3.1.6 [ 17466 ]
            david.nault David Nault made changes -
            Status New [ 10003 ] Open [ 1 ]
            david.nault David Nault made changes -
            Resolution Duplicate [ 3 ]
            Status Open [ 1 ] Resolved [ 5 ]
            david.nault David Nault made changes -
            Link This issue duplicates JCBC-1649 [ JCBC-1649 ]

            Ok sounds good, thanks David.

            will.broadbelt Will Broadbelt added a comment - Ok sounds good, thanks David.
            will.broadbelt Will Broadbelt made changes -
            Status Resolved [ 5 ] Closed [ 6 ]

            People

              david.nault David Nault
              will.broadbelt Will Broadbelt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty