Uploaded image for project: 'C++ Couchbase Client'
  1. C++ Couchbase Client
  2. CXXCBC-422

Building a deferred query index raises an internal server failure rather than authentication failure without permissions

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.0.0-dp.13
    • None
    • fit
    • None

    Description

      in the test buildDeferredIndex in the file QueryIndexManagerMissingRoleTest.

      We are expecting to see an Authentication failure here because of the insufficient permissions configured for this test. However we are seeing the CXX performer return an SDK_INTERNAL_SERVER_FAILURE_EXCEPTION instead of the expected error. I will attach some logs from the performer but I do not see any information that indicates why this error is being returned:

      [2024-01-03 13:39:04.722][10]========== java.util.stream.Stream com.couchbase.client.management.query.QueryIndexManagerMissingRoleTest.buildDeferredIndex():buildDeferredIndex() : ========== testStart
      [2024-01-03 13:39:04.924][10]got run with workloads {
        cluster_connection_id: "defaultClusterConnection_c03a1694-4898-42e5-a4df-4014b0191e7d"
        horizontal_scaling {
          workloads {
            sdk {
              command {
                return_result: true
                cluster_command {
                  query_index_manager {
                    bucket_name: "default"
                    shared {
                      create_index {
                        index_name: "31fca80d-eaac-4d57-9d54-74f9bbaae4a8"
                        fields: "fieldA"
                        options {
                          deferred: true
                        }
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
      [2024-01-03 13:39:04.924][117]Starting batcher
      [2024-01-03 13:39:08.875][10]Inform batcher that workloads are complete
      [2024-01-03 13:39:08.875][117]All results have been sent
      [2024-01-03 13:39:08.875][117]Batcher has finished running
      [2024-01-03 13:39:08.875][10]Exiting from batcher
      [2024-01-03 13:39:08.875][10]Sending OK status
      [2024-01-03 13:39:09.313][11]got run with workloads {
        cluster_connection_id: "com.couchbase.client.management.query.QueryIndexManagerMissingRoleTest_83a37553-90dc-4100-a2e0-6a6cbc56543b"
        horizontal_scaling {
          workloads {
            sdk {
              command {
                return_result: true
                cluster_command {
                  query_index_manager {
                    bucket_name: "default"
                    shared {
                      build_deferred_indexes {
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
      [2024-01-03 13:39:09.313][119]Starting batcher
      [2024-01-03 13:39:10.025][11]Inform batcher that workloads are complete
      [2024-01-03 13:39:10.025][119]All results have been sent
      [2024-01-03 13:39:10.025][119]Batcher has finished running
      [2024-01-03 13:39:10.025][11]Exiting from batcher
      [2024-01-03 13:39:10.026][11]Sending OK status
      [2024-01-03 13:39:16.439] [1,102] [warning] 178734ms, Operations over threshold: {"count":1,"service":"query","top":[{"last_local_id":"5d0d0d-cae5-8b4e-2cc9-886dc69eb32283","last_local_socket":"172.17.0.2:45400","last_operation_id":"d137cb-2028-3644-9e98-479e6e612a61a3","last_remote_socket":"172.23.111.135:8093","operation_name":"cb.query","total_duration_us":3950533}]} 

      Attachments

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

        Activity

          People

            Dimitris.Christodoulou Dimitris Christodoulou
            matthew.bray Matthew Bray
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes