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

querying the view before it is replicated will return "no_db_file" and "not_found,missing" , create/update view should not return the call unless view is replicated across all vbuckets

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 2.0-beta
    • 2.0-beta
    • ns_server
    • Security Level: Public
    • None
    • 2.0.0r-223

    Description

      after creating a view there is a 30+ seconds time gap that if the user tries to query for the results /view will return different errors , no_db_file and not_found_missing

      {'status': '404', 'content-length': '44', 'server': 'CouchDB/1.2.0a-4fd74dc-git (Erlang OTP/R14B03)', 'cache-control': 'must-revalidate', 'date': 'Wed, 27 Jul 2011 01:53:07 GMT', 'content-type': 'text/plain;charset=utf-8'} {"error":"not_found","reason":"no_db_file"}

      and then

      {"total_rows":15,"rows":[{"error":true,"from":null,"reason":"

      {not_found,missing}"},
      {"error":true,"from":null,"reason":"{not_found,missing}

      "},

      but after the initial bootstrap time user will not see any error during retrievng the view

      so the workaround for now is that sdk libraries should wait until the view is replicated across all vbuckets
      but the long term fix would be to make create and update view atomic ( thats what couchdb does)

      Attachments

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

        Activity

          People

            farshid Farshid Ghods (Inactive)
            farshid Farshid Ghods (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty