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

AsyncScope.collection() refreshes collection map for default collection

    XMLWordPrintable

Details

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

    Description

      Bucket.defaultCollection() behaves differently from Bucket.scope("_default").collection("_default"). 

      defaultCollection() does not refresh the collection map.  AsyncScope.collection() does attempt to refresh the collection map, even for the default collection. When running against Couchbase Server prior to 7.0, This results in warnings in the log about failed manifest update requests.

      The workaround is to call `defaultCollection()` instead of `scope("_default").collection("_default")`, but it would be nice if users didn't have to do this.

      Attachments

        For Gerrit Dashboard: JCBC-1666
        # 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