Uploaded image for project: 'Couchbase .NET client library'
  1. Couchbase .NET client library
  2. NCBC-3799

Requests are being passed instead of sending SDK_INVALID_ARGUMENT_EXCEPTION

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • None
    • None
    • 1
    • SDK28, SDK30

    Description

      Below is the list of requests that are being forwarded by SDKs to server (ideally, should not), with their respective Java error messages (They will be quite helpful while debugging):

      1. VectorSearchBase64Test.vectorQueryWithoutFieldNameThrowInvalidArgument

      elapsedNanos: 15115583
      initiated {
        seconds: 1717689892
        nanos: 974000000
      }
      sdk {
        exception {
          couchbase {
            name: "InvalidArgumentException"
            type: SDK_INVALID_ARGUMENT_EXCEPTION
            serialized: "com.couchbase.client.core.error.InvalidArgumentException: Field cannot be null or empty"
          }
        }
      }
       

      2. VectorSearchTest.emptySearchRequestThrowInvalidArgument

      elapsedNanos: 48000
      initiated {
        seconds: 1717691088
        nanos: 865000000
      }
      sdk {
        exception {
          couchbase {
            name: "InvalidArgumentException"
            type: SDK_INVALID_ARGUMENT_EXCEPTION
            serialized: "com.couchbase.client.core.error.InvalidArgumentException: At least one of searchQuery and vectorSearch must be specified"
          }
        }
      }
      

      3. VectorSearchTest.emptyVectorQueryThrowInvalidArgument

      elapsedNanos: 1260833
      initiated {
        seconds: 1717690454
        nanos: 328000000
      }
      sdk {
        exception {
          couchbase {
            name: "InvalidArgumentException"
            type: SDK_INVALID_ARGUMENT_EXCEPTION
            serialized: "com.couchbase.client.core.error.InvalidArgumentException: Vector must have at least one element."
          }
        }
      }
      

      4. VectorSearchTest.vectorQueryWithoutFieldNameThrowInvalidArgument

      elapsedNanos: 653000
      initiated {
        seconds: 1717690548
        nanos: 198000000
      }
      sdk {
        exception {
          couchbase {
            name: "InvalidArgumentException"
            type: SDK_INVALID_ARGUMENT_EXCEPTION
            serialized: "com.couchbase.client.core.error.InvalidArgumentException: Field cannot be null or empty"
          }
        }
      }
      

      5. VectorSearchTest.vectorFiledNameWithoutVectorElementThrowInvalidArgument

      elapsedNanos: 64542
      initiated {
        seconds: 1717690752
        nanos: 114000000
      }
      sdk {
        exception {
          couchbase {
            name: "InvalidArgumentException"
            type: SDK_INVALID_ARGUMENT_EXCEPTION
            serialized: "com.couchbase.client.core.error.InvalidArgumentException: Vector must have at least one element."
          }
        }
      }
      

      FIT patch that has these tests: https://review.couchbase.org/c/transactions-fit-performer/+/210629

      Thanks!

      Attachments

        Issue Links

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

          Activity

            People

              emilien.bevierre Emilien Bevierre
              aaliya.haque Aaliya Haque
              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