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

Ephemeral buckets: After delete curr_items is not decremented

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 5.0.0
    • Fix Version/s: 5.0.0
    • Component/s: couchbase-bucket
    • Labels:
      None
    • Triage:
      Untriaged
    • Is this a Regression?:
      No

      Description

      Found while running the epengine doc-keys test suite but easily reproducible:

      1. Create an ephemeral bucket
      2. Add a KV pair
      3. Delete that KV
      4. Do a get on the KV to confirm that the KV is no longer there
      5. Check cbstats and curr_items is 1 instead of 0.

      Observed with 5.0.0-1928.

       

      Here is the python script I used to reproduce this:

       

      from couchbase.bucket import Bucket
      cb = Bucket('couchbase://172.23.106.24/default') 
      cb.upsert('king_arthur', {'name': 'Arthur',
                 'email': 'kingarthur@couchbase.com',
                 'interests': ['Holy Grail', 'African Swallows']})
       
      rc = cb.delete('king_arthur')
      print 'the rc is', rc
      rc = cb.get('king_arthur')
      print 'get rc is', rc
      

       

        Attachments

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

          Activity

          Hide
          manu Manu Dhundi (Inactive) added a comment -

          Currently the items in hash table is fully deleted and hence stats updated upon the callback from the disk.

          We need to handle this differently in Ephemeral buckets. I will work on this and try to get it working by early next week

          Show
          manu Manu Dhundi (Inactive) added a comment - Currently the items in hash table is fully deleted and hence stats updated upon the callback from the disk. We need to handle this differently in Ephemeral buckets. I will work on this and try to get it working by early next week
          Hide
          dfinlay Dave Finlay added a comment -

          Moving to "Critical" as this is actually a bit of not-yet-implemented feature work and shouldn't be considered a test blocker.

          Show
          dfinlay Dave Finlay added a comment - Moving to "Critical" as this is actually a bit of not-yet-implemented feature work and shouldn't be considered a test blocker.
          Hide
          manu Manu Dhundi (Inactive) added a comment -

          Assigning to Eric for verification

          Show
          manu Manu Dhundi (Inactive) added a comment - Assigning to Eric for verification
          Hide
          build-team Couchbase Build Team added a comment -

          Build 5.0.0-2099 contains ep-engine commit 26e0bd878018930f2ac6fa6c598aca7210189303 with commit message:
          MB-22747 [Ephemeral]: Update item count stats correctly after delete
          https://github.com/couchbase/ep-engine/commit/26e0bd878018930f2ac6fa6c598aca7210189303

          Show
          build-team Couchbase Build Team added a comment - Build 5.0.0-2099 contains ep-engine commit 26e0bd878018930f2ac6fa6c598aca7210189303 with commit message: MB-22747 [Ephemeral] : Update item count stats correctly after delete https://github.com/couchbase/ep-engine/commit/26e0bd878018930f2ac6fa6c598aca7210189303
          Hide
          ericcooper Eric Cooper (Inactive) added a comment -

          Thank you

          Show
          ericcooper Eric Cooper (Inactive) added a comment - Thank you

            People

            • Assignee:
              ericcooper Eric Cooper (Inactive)
              Reporter:
              ericcooper Eric Cooper (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Gerrit Reviews

                There are no open Gerrit changes

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.