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

Query prepared cache is shared across scope and cluster without differentiating

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • core-10.3.1, 2.7.1
    • None
    • None
    • None
    • 1

    Description

      The reason this happens, and only on a fresh cluster, is because Go is using prepared statements. The first time that the query is run at the scope level the SDK is picking up the prepared statement created by the cluster level query. Query itself says that this prepared statement doesn't exist (because it doesn't at the scope level) and returns an error, at which point the SDK reprepares. This only happens on a fresh cluster because after the first test run the prepared statement exists on the server. Running "delete from system:prepareds" between each run of this test reproduces the issue every time.

      Attachments

        Issue Links

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

          Activity

            People

              charles.dixon Charles Dixon
              charles.dixon Charles Dixon
              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