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

[Collections]: Drop default collection using java sdk fails with 'FeatureNotAvailable' exception

    XMLWordPrintable

    Details

      Description

      Build: 7.0.0-4834

      Last working build: 7.0.0-4797

      Scenario:

      1. Single node cluster
      2. Couchbase bucket replica=1
      3. Load few docs into the default collection
      4. Drop collection using the java sdk call,

        bucketObj.collections().dropCollection(collection_spec)

      Observation:

      Observing following exception from SDK

      FeatureNotAvailableException: com.couchbase.client.core.error.FeatureNotAvailableException: The cluster does not support collections and scopes.

      QE test:

      bucket_collections.basic_ops.BasicOps:
        test_delete_default_collection,nodes_init=1,client_type=sdk,scope=random,collection=random
      

        Attachments

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

          Activity

          Hide
          drigby Dave Rigby added a comment -

          The changelog of the builds in question includes the following ns_server change:

          MB-42849 Remove older scope/collection REST APIs

          The first set of REST APIs dealing with scopes and collections have been
          made more consistent (from the pov of the user) with their replacments.
          This change removes the older APIs as the clients have been converted.

          Change-Id: I057ae99cec449ad596971b6abfbf79cb30b7108d
          Reviewed-on: http://review.couchbase.org/c/ns_server/+/145764
          Well-Formed: Build Bot <build@couchbase.com>
          Tested-by: Build Bot <build@couchbase.com>
          Reviewed-by: Artem Stemkovski <artem@couchbase.com>

          Ashwin Govindarajulu Can you verify you're using a sufficiently recent Java SDK which uses the new REST APIs?

          Show
          drigby Dave Rigby added a comment - The changelog of the builds in question includes the following ns_server change: MB-42849 Remove older scope/collection REST APIs The first set of REST APIs dealing with scopes and collections have been made more consistent (from the pov of the user) with their replacments. This change removes the older APIs as the clients have been converted. Change-Id: I057ae99cec449ad596971b6abfbf79cb30b7108d Reviewed-on: http://review.couchbase.org/c/ns_server/+/145764 Well-Formed: Build Bot <build@couchbase.com> Tested-by: Build Bot <build@couchbase.com> Reviewed-by: Artem Stemkovski <artem@couchbase.com> Ashwin Govindarajulu Can you verify you're using a sufficiently recent Java SDK which uses the new REST APIs?
          Hide
          ashwin.govindarajulu Ashwin Govindarajulu added a comment -

          Thanks for triaging Dave Rigby . Will try using latest Java-sdk and update the results.

          Show
          ashwin.govindarajulu Ashwin Govindarajulu added a comment - Thanks for triaging Dave Rigby . Will try using latest Java-sdk and update the results.
          Hide
          ashwin.govindarajulu Ashwin Govindarajulu added a comment -

          Works fine while using j*ava-client-3.1.3.*

          Closing this ticket.

           

          Show
          ashwin.govindarajulu Ashwin Govindarajulu added a comment - Works fine while using j*ava-client-3.1.3.* Closing this ticket.  

            People

            Assignee:
            ashwin.govindarajulu Ashwin Govindarajulu
            Reporter:
            ashwin.govindarajulu Ashwin Govindarajulu
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty