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

cbcompact fails to purge delete keys

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 5.0.0
    • 5.0.0
    • couchbase-bucket
    • centos 7.2 64-bit
    • Untriaged
    • Yes
    • KV Spock DP Sprint

    Description

      Install Couchbase server 5.0.0-2510

      Create default bucket

      Load 100K docs with key A

      Delete 50K docs with key A

      Load again 50K docs with key B

      Check if delete key still in vbucket

      [root@s44015 ~]# /opt/couchbase/bin//couch_dbdump  /opt/couchbase/var/lib/couchbase/data//default/0.couch.* | grep deleted
           doc deleted
           doc deleted
           doc deleted
           doc deleted
           doc deleted
           doc deleted
           doc deleted
           doc deleted
           doc deleted
           doc deleted
           doc deleted
           doc deleted

      Run cbcompact => failed

      [root@s44015 ~]# /opt/couchbase/bin/cbcompact 172.23.121.224:11210 compact 0 --dropdeletes --purge-only-upto-seq=100000
      Unable to compact vbucket 0 with the following parameters (purge before time: 0, purge before seqno: 100000, drop deletes: 1) in requested engine.

      Got error unable to compact vbucket 0.

      Tried with other vbucket, got same error

      Check again if deleted docs still in vbucket => not purge yet

      [root@s44015 ~]# /opt/couchbase/bin//couch_dbdump  /opt/couchbase/var/lib/couchbase/data//default/0.couch.* | grep deleted
           doc deleted
           doc deleted
           doc deleted
           doc deleted
           doc deleted
           doc deleted
           doc deleted
           doc deleted
           doc deleted
           doc deleted
           doc deleted
           doc deleted

       

      Attachments

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

        Activity

          People

            thuan Thuan Nguyen
            thuan Thuan Nguyen
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty