Uploaded image for project: 'Couchbase Ruby client library'
  1. Couchbase Ruby client library
  2. RCBC-481

FIT: CollectionQueryIndexManager tests failing, when the cluster does not support collections

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • None
    • None
    • None
    • None
    • 0

    Description

      Failing on 6.6-release server version. For server versions after 6.6-release, test is getting skipped with cluster capability missing. 

      FIT test for CollectionQueryIndexManager are failing with internal server error. Tests are expecting to return SDK_FEATURE_NOT_AVAILABLE_EXCEPTION but instead got SDK_INTERNAL_SERVER_FAILURE_EXCEPTION. 

      Result got: 

      couchbase {
        name: "Couchbase::Error::InternalServerFailure"
        type: SDK_INTERNAL_SERVER_FAILURE_EXCEPTION
        serialized: "unable to drop primary index on the collection \"management_query_collection_CollectionQueryIndexManagerPreCollectionClusterTest\" (3000: syntax error - at .): internal_server_failure (5), context={\"error\":\"5, internal_server_failure (5)\",\"client_context_id\":\"2be2e6-4559-1344-4807-2dc2fb99e093a7\",\"method\":\"POST\",\"path\":\"/query/service\",\"http_status\":400,\"http_body\":\"{\\n\\\"requestID\\\": \\\"5ec84d08-f713-435d-93bc-ac1eb6aeec0e\\\",\\n\\\"clientContextID\\\": \\\"2be2e6-4559-1344-4807-2dc2fb99e093a7\\\",\\n\\\"errors\\\": [{\\\"code\\\":3000,\\\"msg\\\":\\\"syntax error - at .\\\"}],\\n\\\"status\\\": \\\"fatal\\\",\\n\\\"metrics\\\": {\\\"elapsedTime\\\": \\\"2.525517ms\\\",\\\"executionTime\\\": \\\"1.991837ms\\\",\\\"resultCount\\\": 0,\\\"resultSize\\\": 0,\\\"errorCount\\\": 1}\\n}\\n\",\"last_dispatched_to\":\"172.23.111.132:8093\",\"last_dispatched_from\":\"192.168.100.87:52058\"}"
      } 

      Expected Result: 

      couchbase {
        name: "FeatureNotAvailableException"
        type: SDK_FEATURE_NOT_AVAILABLE_EXCEPTION
        serialized: "com.couchbase.client.core.error.FeatureNotAvailableException: Scope-Level queries for the QUERY service are not supported on the connected cluster (Only supported with Couchbase Server 7.0 and later)."
      } 

      No errors found in performer logs.

      bundle exec ruby server.rb                                                                  1 err  5s  01:31:31 PM 
      I, [2024-03-19T13:31:36.878208 #10594]  INFO -- : Listening on 0.0.0.0:8060
      I, [2024-03-19T13:31:36.878291 #10594]  INFO -- : Using Ruby SDK version 3.4.5
      I, [2024-03-19T13:31:54.163518 #10594]  INFO -- : disconnect_connections called
      I, [2024-03-19T13:31:54.180282 #10594]  INFO -- : performer_caps_fetch called
      I, [2024-03-19T13:31:54.229518 #10594]  INFO -- : cluster_connection_create called
      I, [2024-03-19T13:31:54.229727 #10594]  INFO -- : Creating connection using connection string `couchbase://172.23.111.132` (ID = defaultClusterConnection_62298433-2bda-4840-8f86-281f833631bf)
      I, [2024-03-19T13:32:13.511723 #10594]  INFO -- : ====== Test file: Start ======
      I, [2024-03-19T13:32:14.293844 #10594]  INFO -- : ====== java.util.stream.Stream com.couchbase.client.management.query.collection.CollectionQueryIndexManagerPreCollectionClusterTest.dropPrimaryIndexWithDefaults():dropPrimaryIndexWithDefaults(): testStart ======
      I, [2024-03-19T13:32:14.374360 #10594]  INFO -- : run called
      I, [2024-03-19T13:32:14.374666 #10594]  INFO -- : Created the workload executor
      I, [2024-03-19T13:32:14.374711 #10594]  INFO -- : Created the request executor
      I, [2024-03-19T13:32:14.374808 #10594]  INFO -- : Executing the request
      I, [2024-03-19T13:32:16.691796 #10594]  INFO -- : All streams from run 3a81db3b-09d5-4778-8a71-07ae9ae4e863 have finished
      I, [2024-03-19T13:32:16.772124 #10594]  INFO -- : run called
      I, [2024-03-19T13:32:16.772636 #10594]  INFO -- : Created the workload executor
      I, [2024-03-19T13:32:16.772678 #10594]  INFO -- : Created the request executor
      I, [2024-03-19T13:32:16.772759 #10594]  INFO -- : Executing the request
      I, [2024-03-19T13:32:17.397098 #10594]  INFO -- : All streams from run 3083982c-81e0-4240-94ea-525fd5eb0537 have finished
      I, [2024-03-19T13:32:17.404209 #10594]  INFO -- : ====== java.util.stream.Stream com.couchbase.client.management.query.collection.CollectionQueryIndexManagerPreCollectionClusterTest.dropPrimaryIndexWithDefaults():dropPrimaryIndexWithDefaults(): testEnd ======
      I, [2024-03-19T13:32:17.407345 #10594]  INFO -- : ====== Test file: End ======
      I, [2024-03-19T13:32:55.712935 #10594]  INFO -- : disconnect_connections called
      I, [2024-03-19T13:32:55.730624 #10594]  INFO -- : performer_caps_fetch called
      I, [2024-03-19T13:32:55.779099 #10594]  INFO -- : cluster_connection_create called
      I, [2024-03-19T13:32:55.779246 #10594]  INFO -- : Creating connection using connection string `couchbase://172.23.111.132` (ID = defaultClusterConnection_746df989-9337-4bf8-88ec-d4bf91fc62d1)
      I, [2024-03-19T13:33:07.512092 #10594]  INFO -- : ====== Test file: Start ======
      I, [2024-03-19T13:33:08.320007 #10594]  INFO -- : ====== java.util.stream.Stream com.couchbase.client.management.query.collection.CollectionQueryIndexManagerPreCollectionClusterTest.dropPrimaryIndexWithDefaults():dropPrimaryIndexWithDefaults(): testStart ======
      I, [2024-03-19T13:33:08.406892 #10594]  INFO -- : run called
      I, [2024-03-19T13:33:08.407131 #10594]  INFO -- : Created the workload executor
      I, [2024-03-19T13:33:08.407167 #10594]  INFO -- : Created the request executor
      I, [2024-03-19T13:33:08.407251 #10594]  INFO -- : Executing the request
      I, [2024-03-19T13:33:10.863203 #10594]  INFO -- : All streams from run 1786258c-6cf5-4653-848c-75ce5e4c810a have finished
      I, [2024-03-19T13:33:51.359402 #10594]  INFO -- : run called
      I, [2024-03-19T13:33:51.359631 #10594]  INFO -- : Created the workload executor
      I, [2024-03-19T13:33:51.359667 #10594]  INFO -- : Created the request executor
      I, [2024-03-19T13:33:51.360075 #10594]  INFO -- : Executing the request
      I, [2024-03-19T13:33:51.920109 #10594]  INFO -- : All streams from run dcc21355-0481-4bd8-a0cd-22410b6ffcd0 have finished
      I, [2024-03-19T13:34:50.024545 #10594]  INFO -- : ====== java.util.stream.Stream com.couchbase.client.management.query.collection.CollectionQueryIndexManagerPreCollectionClusterTest.dropPrimaryIndexWithDefaults():dropPrimaryIndexWithDefaults(): testEnd ======
      I, [2024-03-19T13:34:50.028443 #10594]  INFO -- : ====== Test file: End ======
      I, [2024-03-19T13:45:30.536007 #10594]  INFO -- : disconnect_connections called
      I, [2024-03-19T13:45:30.553942 #10594]  INFO -- : performer_caps_fetch called
      I, [2024-03-19T13:45:30.614712 #10594]  INFO -- : cluster_connection_create called
      I, [2024-03-19T13:45:30.614932 #10594]  INFO -- : Creating connection using connection string `couchbase://172.23.111.136` (ID = defaultClusterConnection_e4ee31fa-783d-4f73-9b36-4ebfd9fe5d7e 

      This test is passing on Java and scala, but getting skipped on kotlin as SDK missing capablity. 

      Attachments

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

        Activity

          People

            Dimitris.Christodoulou Dimitris Christodoulou
            saurabh.mishra Saurabh Mishra
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty