Uploaded image for project: 'Java Couchbase JVM Core'
  1. Java Couchbase JVM Core
  2. JVMCBC-1058

Throw FeatureNotAvailableException for Scopes and Collections on Memcached Buckets

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.2.5
    • Core
    • java-client-3.2.2
      Server 7.1.0-2123-enterprise
    • 1

    Description

      Steps:

      • Couchbase cluster
      • Create memcached bucket
      • Try creating scope/collection using Java client. 

        Eg: bucket.collections().createScope("scope")

      Result on java-client-3.2.2

       

      com.couchbase.client.core.error.HttpStatusCodeException: Unexpected HTTP status 400 Bad Request {"completed":true,"coreId":"0xc272083a00000001","httpStatus":400,"idempotent":false,"lastDispatchedFrom":"172.23.106.205:55352","lastDispatchedTo":"172.23.105.155:8091","requestId":258,"requestType":"CoreHttpRequest","retried":0,"service":{"method":"POST","path":"/pools/default/buckets/JbqG30IYIDANSin%25kCRpC6Nps31Ir23JcWaEUjrozjthTcUVRbKOx-20-888000/scopes","type":"mgmt"},"timeoutMs":75000,"timings":{"dispatchMicros":6386,"totalDispatchMicros":6386,"totalMicros":17272}}

       

      Note:

      The same scenario works as expected with java-client-3.1.5

       

      com.couchbase.client.core.error.CouchbaseException: Unknown error in CollectionManager: Not allowed on this type of bucket, response: GenericManagerResponse{status=INVALID_ARGS, httpStatus=400, content=Not allowed on this type of bucket}

      QE test(TAF):

      bucket_collections.basic_ops.BasicOps:
          test_with_memcached_bucket,bucket_type=memcached,nodes_init=2,num_items=0
      

       

       

      Attachments

        For Gerrit Dashboard: JVMCBC-1058
        # Subject Branch Project Status CR V

        Activity

          daschl Michael Nitschinger added a comment - - edited

          Ashwin Govindarajulu can you please retest with the latest SDK, 3.2.4?

          Edit: actually it still fails with 3.2.5-SNAPSHOT.

          But note that the title is a little bit misleading, since HttpStatusCodeException extends CouchbaseException. Nonetheless this should be a more descriptive exception - I'm on it.

          daschl Michael Nitschinger added a comment - - edited Ashwin Govindarajulu can you please retest with the latest SDK, 3.2.4? Edit: actually it still fails with 3.2.5-SNAPSHOT. But note that the title is a little bit misleading, since HttpStatusCodeException extends CouchbaseException. Nonetheless this should be a more descriptive exception - I'm on it.

          Okay Michael Nitschinger, Will test it out.

          ashwin.govindarajulu Ashwin Govindarajulu added a comment - Okay Michael Nitschinger , Will test it out.

          People

            daschl Michael Nitschinger
            ashwin.govindarajulu Ashwin Govindarajulu
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty