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
    • Resolution: Duplicate
    • Major
    • None
    • 3.1.5
    • 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

          Activity

            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:

                PagerDuty