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

Throw FeatureNotAvailableException when query preserve expiry is not supported

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 2.2.5
    • None
    • None
    • None
    • 1

    Description

      If the user sets queryOptions().preserveExpiry(true) with a pre-7.1 cluster, they get a CouchbaseException with message "Unknown query error" and context that includes

      [{"code":1065,"message":"Unrecognized parameter in request: preserve_expiry"}]
      

      We can translate this into a more informative FeatureNotAvailable exception (like we do when the user tries to query a scope on a pre-7.0 cluster.

      Suggested release note: NONE, since `queryOptions().preserveExpiry()` method was added in the same version.

      Attachments

        Issue Links

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

          Activity

            People

              david.nault David Nault
              david.nault David Nault
              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