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

Bucket deletion fails to delete on-disk data and indexes

    XMLWordPrintable

Details

    Description

      Deleted default-p and default-s buckets, while the indexing/compaction was still in progress

      Post deletion of these buckets, we stil have dangling databases (eg from node 17 and node 20)
      On node 20 (default bucket is not deleted), on node 17 (default-s bucket is not deleted)
      the indexes for these databases still exists on disk.

      node 20
      ls -latr /data/
      total 76
      drwxr-xr-x. 3 couchbase couchbase 4096 Aug 19 17:43 .bucket-0
      rw-rr-. 1 couchbase couchbase 4175 Aug 20 16:56 _users.couch.1
      rw-rr-. 1 couchbase couchbase 4175 Aug 20 16:56 _replicator.couch.1
      drwxr-xr-x. 3 couchbase couchbase 4096 Aug 20 17:38 .default
      dr-xr-xr-x. 26 root root 4096 Aug 20 19:22 ..
      drwxr-xr-x. 2 couchbase couchbase 4096 Aug 21 15:03 .default-p
      drwxr-xr-x. 3 couchbase couchbase 4096 Aug 22 13:05 @indexes
      drwxr-xr-x. 2 couchbase couchbase 4096 Aug 22 13:05 .default-s
      drwxr-xr-x. 2 couchbase couchbase 4096 Aug 22 13:09 ._replicator_design
      drwxr-xr-x. 11 couchbase couchbase 4096 Aug 22 13:09 .
      drwxr-xr-x. 2 couchbase couchbase 12288 Aug 22 13:11 default
      drwxr-xr-x. 2 couchbase couchbase 4096 Aug 22 13:28 go
      drwxr-xr-x. 70 couchbase couchbase 4096 Aug 22 13:28 .delete

      node 17
      Dont see message like following for the default-s bucket here
      [ns_server:info,2012-08-22T13:12:25.807,ns_1@10.3.121.17:'ns_memcached-default':ns_storage_conf:delete_couch_database:410]Deleting database <<"default/master">>: ok
      [ns_server:info,2012-08-22T13:12:25.808,ns_1@10.3.121.17:'ns_memcached-default':ns_storage_conf:delete_databases_and_files:462]Couch dbs are deleted. Proceeding with bucket directory

      node 20
      Dont see message like following for the default bucket here
      [ns_server:info,2012-08-22T13:05:51.167,ns_1@10.3.121.20:'ns_memcached-default-s':ns_storage_conf:delete_databases_and_files:462]Couch dbs are deleted. Proceeding with bucket directory

      Attachments

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

        Activity

          People

            alkondratenko Aleksey Kondratenko (Inactive)
            karan Karan Kumar (Inactive)
            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