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

UI shows "Error: notfound (Document does not exist) " for a document that was obtained from all_docs ( documents page in the UI ) if key is hashed to the wrong vbucket

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • 3.0
    • None
    • ns_server
    • Security Level: Public
    • None

    Description

      I ran some tests which inserted all documents to vbucket #0 and this occured.

      this happens to some of the docs. i picked doc by id : 0001261e2060303a

      UI obtains couple of IDs when you enter the documents tab by running this query

      http://127.0.0.1:8091/couchBase/default/_all_docs?skip=0&include_docs=true&limit=6&_=1353805358131
      https://friendpaste.com/5HBhYD6xivnnOE4JMLm0St

      and then when i click on edit document it runs this query to read the data :

      couchbase-macbook-13:bin farshid$ curl "http://localhost:8091/couchBase/default/0001261e2060303a"

      {"error":"not_found","reason":"missing"}

      according to ep-engine this key exists:

      couchbase-macbook-13:bin farshid$ ./cbstats localhost:11210 vkey 0001261e2060303a 0
      verification for key 0001261e2060303a
      key_cas: 167331263816
      key_data_age: 0
      key_exptime: 0
      key_flags: 0
      key_is_dirty: 0
      key_last_modification_time: 1353805787
      key_valid: valid
      key_vb_state: active

      also according to couch_dbdump this key exists :

      ./couch_dbdump --byid /Volumes/one/database/data/default/0.couch.4

      Doc ID: 0001261e2060303a
      seq: 135765
      rev: 1
      content_meta: 128
      cas: 167331263816, expiry: 0, flags: 0
      data: (snappy)

      {"key":"0001261e2060303a", "key_num":115298, "name":"0001 303", "email":"0001@12.com", "city":"261", "country":"e2", "realm":"06", "coins":0.01, "category":2, "achievements":[21, 21, 57, 57, 99, 249],"body":"xc4ca4238a0b923820dcc509a6f75849b"}

      Attachments

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

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty