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

Get with very large projection test is returning fields outside of the projection

    XMLWordPrintable

Details

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

    Description

      In the test getWithVeryLargeProjection in the file GetTest.

      The test creates a 20 field document and then creates a projection on 18 of the fields. It then verifies all 18 fields in the projection are in the get result and verifies that the 19th and 20th field is not present. The test is failing because those 2 fields are present.

      I am not super familiar with this test but it was last edited by Dimitris Christodoulou who may be able to elaborate on the issue.

      Performer log shows the 18 fields were requested:

      [2024-01-03 14:28:47.461][11]========== java.util.stream.Stream com.couchbase.client.kv.GetTest.getWithVeryLargeProjection():getWithVeryLargeProjection() : ========== testStart
      [2024-01-03 14:28:47.793][11]got run with workloads {
        cluster_connection_id: "defaultClusterConnection_ed27b125-081c-4f66-878f-c22a78afcb62"
        horizontal_scaling {
          workloads {
            sdk {
              command {
                get {
                  location {
                    specific {
                      collection {
                        bucket_name: "default"
                        scope_name: "_default"
                        collection_name: "_default"
                      }
                      id: "2e06d50d-7a09-423b-a6ff-db265ce62a29"
                    }
                  }
                  options {
                    projection: "field_1"
                    projection: "field_2"
                    projection: "field_3"
                    projection: "field_4"
                    projection: "field_5"
                    projection: "field_6"
                    projection: "field_7"
                    projection: "field_8"
                    projection: "field_9"
                    projection: "field_10"
                    projection: "field_11"
                    projection: "field_12"
                    projection: "field_13"
                    projection: "field_14"
                    projection: "field_15"
                    projection: "field_16"
                    projection: "field_17"
                    projection: "field_18"
                  }
                  content_as {
                    as_json_object: true
                  }
                }
                return_result: true
              }
            }
          }
        }
      }
      [2024-01-03 14:28:47.793][154]Starting batcher
      [2024-01-03 14:28:49.542][11]Inform batcher that workloads are complete
      [2024-01-03 14:28:49.542][154]All results have been sent
      [2024-01-03 14:28:49.542][154]Batcher has finished running
      [2024-01-03 14:28:49.542][11]Exiting from batcher
      [2024-01-03 14:28:49.542][11]Sending OK status
      [2024-01-03 14:28:49.661][10]========== java.util.stream.Stream com.couchbase.client.kv.GetTest.getWithVeryLargeProjection():getWithVeryLargeProjection() : ========== testEnd 

      Attachments

        Issue Links

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

          Activity

            People

              matt.wozakowski Matt Wozakowski
              matthew.bray Matthew Bray
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes