Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-19099

UI should fallback to getting a document from /pools/default/buckets/bucketname/docs if localRandomKey returns fallback_to_all_docs error [was: Add support for randomKey (in addition to localRandomKey) to the REST API]

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.5.0
    • 4.5.0
    • UI
    • None
    • Untriaged
    • Yes

    Description

      I'm sure this is a known issue, but in the case where you have a multi-node cluster, you create a new bucket and insert one document, then you may run into the issue that the views editing screen reports "there are no documents" when you click the "Preview a random document" button.

      The reason, of course, is that we use the localRandomKey REST API to support this screen and there's a chance that your single document did not go into the local memcached.

      Attachments

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

        Activity

          People

            pavel Pavel Blagodov
            dfinlay Dave Finlay
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty