Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-1167

Client should re-prepare a query when it receives "index not found" error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • .backlog
    • 2.5.4
    • None
    • None

    Description

      When a user removes and re-creates an index server-side, the client-side prepared query cache may continue to reference the old index id.  When the application issues a query using the now invalid index id, the query service responds with error message "queryport.indexNotFound" and error code 12016.

      There are manual workarounds, but the Java SDK already includes code for retrying prepared queries when the error message is "queryport.indexNotFound" but limits retries to error code 5000.  Can we also re-prepare on error 12016?

       

      Attachments

        Issue Links

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

          Activity

            People

              marco.greco Marco Greco (Inactive)
              dproctor Dean Proctor (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty