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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: 3.0
    • Component/s: ns_server
    • Security Level: Public
    • Labels:
      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"}
      1. Screen Shot 2012-11-24 at 5.11.56 PM.png
        49 kB
      2. Screen Shot 2012-11-24 at 5.12.02 PM.png
        33 kB
      No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        i attached screenshots and also db file.

        this looks like an issue in the CAPI side . if CAPI is vbucket aware then this is expected behavior.

        Show
        farshid Farshid Ghods (Inactive) added a comment - i attached screenshots and also db file. this looks like an issue in the CAPI side . if CAPI is vbucket aware then this is expected behavior.
        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        Support for custom vbucket mapping requires extensive changes to document editing JS and server side implementation.

        Particularly we'll need _all_docs to be able to return document vbuckets and we'll have to change CRUD api to use them.

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - Support for custom vbucket mapping requires extensive changes to document editing JS and server side implementation. Particularly we'll need _all_docs to be able to return document vbuckets and we'll have to change CRUD api to use them.
        Hide
        farshid Farshid Ghods (Inactive) added a comment -

        deferring to 2.1 per bug scrub meeting ( Dipti & Farshid -December 7th )

        Show
        farshid Farshid Ghods (Inactive) added a comment - deferring to 2.1 per bug scrub meeting ( Dipti & Farshid -December 7th )
        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        Duplicate of proper document editing API ticket which is more general and is planned to handle nonstandard vbucket hashing

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - Duplicate of proper document editing API ticket which is more general and is planned to handle nonstandard vbucket hashing
        Hide
        maria Maria McDuff (Inactive) added a comment -

        closing as dupes.

        Show
        maria Maria McDuff (Inactive) added a comment - closing as dupes.

          People

          • Assignee:
            alkondratenko Aleksey Kondratenko (Inactive)
            Reporter:
            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