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

Defer build index that is not built is not being deleted when the bucket is deleted

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • None
    • 4.5.0
    • secondary-index
    • None
    • Untriaged
    • Centos 64-bit
    • Unknown

    Description

      Defer build index that is not built is not being deleted when the bucket is deleted. Built index works, it will get removed when the bucket is gone.

      Reproduce case:
      1. Create a bucket named `user`
      2. Create index with defer build true and not executing BUILD INDEX: [CREATE INDEX index_userId ON `user`(userId) WHERE meta().id LIKE 'user/%' WITH

      { "defer_build": true }

      ;]
      3. Delete bucket `user`
      4. Index UI still have the index being displayed
      5. Execute query of [SELECT * FROM system:indexes;] returns nothing - no index.
      6. Repeat step 1
      7. Repeat step 2 [Error code: 4300, message: "The index index_userId already exists."]

      If step 5 is true, step 7 should be succeed.

      Attachments

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

        Activity

          People

            siri Sriram Melkote (Inactive)
            mwan M Wan
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty