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

Preview Random Document in the View tab doesn't show the actual values for rev, expiration, flags

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: UI
    • Security Level: Public

      Description

      build-1710

      case could be simple, for instance, on python:

      for i in xrange(self.num_docs):
      pref = str
      self.docs["id" + pref] = "value"*100 + pref
      for doc in self.docs:
      self.awareness.set(doc, int(self.expiration), 0, self.docs[doc])

      for i in xrange(self.num_docs):
      pref = str
      self.docs["id" + pref] = "value"*10 + pref
      for doc in self.docs:
      self.awareness.set(doc, int(self.expiration), 0, self.docs[doc])

      create view, and using Preview Random Document feature we can see metaInfo in which values for rev, expiration, flags are not changed at all

      { "id": "test_docs-529", "rev": "1-00000000000000000000000000000000", "att_reason": "invalid_key", "expiration": 0, "flags": 0, "type": "base64" }

      are there any reasons why it works that way so far?

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

        Activity

        Hide
        iryna iryna added a comment -

        verified with build-1884

        Show
        iryna iryna added a comment - verified with build-1884
        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - http://review.couchbase.org/#/c/21496/
        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        I was planning to "fix" this as part of CAPI CRUD rewrite, but apparently I'll have to fix it inside existing implementation. I.e. because document editing refactoring work is not approved for 2.0 anymore.

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - I was planning to "fix" this as part of CAPI CRUD rewrite, but apparently I'll have to fix it inside existing implementation. I.e. because document editing refactoring work is not approved for 2.0 anymore.
        Hide
        alkondratenko Aleksey Kondratenko (Inactive) added a comment -

        Seen this too.

        This is actually some couch_doc bug. Will fix as part of fixing this entire area

        Show
        alkondratenko Aleksey Kondratenko (Inactive) added a comment - Seen this too. This is actually some couch_doc bug. Will fix as part of fixing this entire area

          People

          • Assignee:
            iryna iryna
            Reporter:
            andreibaranouski Andrei Baranouski
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Gerrit Reviews

              There are no open Gerrit changes