Uploaded image for project: 'Couchbase Go SDK'
  1. Couchbase Go SDK
  2. GOCBC-1599

Error `index not found` not being parsed for drop search index

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • None
    • None
    • library
    • None

    Description

      For test SearchIndexManagerTest.dropIndexThrowsIndexNotFound, in GO, we are getting different error message then expected:

      exception {
        couchbase {
          name: "IndexNotFoundException"
          type: SDK_INDEX_NOT_FOUND_EXCEPTION
          serialized: "com.couchbase.client.core.error.IndexNotFoundException: Index not found {\"completed\":true,\"coreId\":\"0x77270d7e00000001\",\"httpBody\":\"{\\\"error\\\":\\\"rest_auth: preparePerms, err: index not found\\\",\\\"request\\\":\\\"\\\",\\\"status\\\":\\\"fail\\\"}\\n\",\"httpStatus\":400,\"idempotent\":false,\"lastDispatchedFrom\":\"10.100.195.85:62685\",\"lastDispatchedTo\":\"172.23.111.130:8094\",\"requestId\":8,\"requestType\":\"CoreHttpRequest\",\"retried\":0,\"service\":{\"method\":\"DELETE\",\"path\":\"/api/bucket/default/scope/fts_scope_daa429/index/this-index-does-not-exist\",\"type\":\"search\"},\"status\":\"INVALID_ARGS\",\"timeoutMs\":75000,\"timings\":{\"dispatchMicros\":275846,\"totalDispatchMicros\":275846,\"totalMicros\":570966}}"
        }
      } 

      actual:

      exception {
        other {
          serialized: "failed to drop the index | {\"endpoint\":\"http://172.23.111.132:8094\",\"error_text\":\"{\\\"error\\\":\\\"rest_auth: preparePerms, err: index not found\\\",\\\"request\\\":\\\"\\\",\\\"status\\\":\\\"fail\\\"}\\n\",\"status_code\":400}"
        }
      } 

      Related conversation: On Slack

      Attachments

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

        Activity

          People

            Dimitris.Christodoulou Dimitris Christodoulou
            aaliya.haque Aaliya Haque
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty