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

Java returns a CouchbaseException instead of the expected InvalidArgumentException when the value of k < 1 in vector search query options

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Minor
    • 2.6.0
    • None
    • None
    • 1
    • SDK06: FIT, PS, CXX
    • High

    Description

      Release notes: N/A.  (I don't think is worth mentioning)

      Java returns a CouchbaseException instead of the expected InvalidArgumentException when the value of k < 1 in vector search query options.

      Repo:

      • Pass K = 0 in VectorQuery options.

      Error:

      initiated {
        seconds: 1706615712
        nanos: 231000000
      }
      sdk {
        exception {
          couchbase {
            name: "CouchbaseException"
            serialized: "com.couchbase.client.core.error.CouchbaseException: Unknown search error: \"rest_index: Query, indexName: global_vector_index_e5e501, err: bleve: QueryBleve parsing searchRequest, err: k must be greater than 0 and vector must be non-empty\" {\"completed\":true,\"coreId\":\"0xa0767d2f00000024\",\"httpBody\":\"\\\"rest_index: Query, indexName: global_vector_index_e5e501, err: bleve: QueryBleve parsing searchRequest, err: k must be greater than 0 and vector must be non-empty\\\"\",\"httpStatus\":400,\"idempotent\":true,\"lastDispatchedFrom\":\"127.0.0.1:52160\",\"lastDispatchedTo\":\"localhost:25308\",\"requestId\":15504,\"requestType\":\"ServerSearchRequest\",\"retried\":0,\"service\":{\"indexName\":\"global_vector_index_e5e501\",\"type\":\"search\"},\"status\":\"INVALID_ARGS\",\"timeoutMs\":75000,\"timings\":{\"dispatchMicros\":1257093,\"totalDispatchMicros\":1257093,\"totalMicros\":1260176}}"
          }
        }
      }
      

      Attachments

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

        Activity

          People

            graham.pople Graham Pople
            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