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

Incorrect stats curr_items/total_items after flushing a memcached bucket

    XMLWordPrintable

Details

    • Bug
    • Resolution: Won't Fix
    • Major
    • 2.0
    • 2.0
    • ns_server
    • Security Level: Public
    • None

    Description

      Steps to reproduce:

      1. Create a memcached bucket
      curl -v -u Administrator:password -d name=newcachebucket -d ramQuotaMB=128 -d authType=none -d proxyPort=11216 -d bucketType=memcached http://10.3.3.95:8091/pools/default/buckets

      2. Enable Flush from the UI for the bucket

      3. Insert data and check

      root@ubuntu1104-64:~/testrunner/lib# telnet 10.3.3.95 11216
      Trying 10.3.3.95...
      Connected to 10.3.3.95.
      Escape character is '^]'.
      set test_key 0 0 1
      a
      STORED
      set test_key1 0 0 1
      b
      STORED
      set test_key2 0 0 1
      a
      STORED

      get test_key
      VALUE test_key 0 1
      a
      END
      get test_key1
      VALUE test_key1 0 1
      b
      END
      get test_key2
      VALUE test_key2 0 1
      c
      END

      stats
      STAT curr_items 3
      STAT total_items 3

      4. Flush the bucket from the UI.

      5. After flush, "get" on keys doesn't return anything as expected.

      get test_key1
      END
      get test_key2
      END
      get test_key3
      END

      But the stats are not correct.
      stats
      STAT total_items 3
      STAT curr_items 1

      Same is the case on the UI. curr_items is shown as 1.

      Diagnostics are attached.

      Attachments

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

        Activity

          People

            trond Trond Norbye
            deepkaran.salooja Deepkaran Salooja
            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