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

GSI index survive a bucket deletion in deferred build edge case

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Critical
    • 4.5.0
    • 4.0.0, 4.1.0
    • secondary-index
    • Security Level: Public
    • None
    • Untriaged
    • Unknown

    Description

      While doing integration testing of index creation in the Java SDK, I came across what I think might be a bug (albeit in an edge case).
      I create indexes on adhoc buckets, meaning that a single integration test is given a dedicated bucket for its duration (quite short, a few seconds). The bucket is then immediately destroyed. The tests create GSI index(es) and verifies the SDK API behavior.

      At some point, I use the defer feature and trigger the build of 3 deferred indexes.

      It looks like some times, most probably when the test finishes before the build has ended, the indexes survive the bucket's removal.
      When I relaunch the test, it recreates a bucket with the same name but the index creation fails right away with the error "index already exist".

      Looks like all indexes are already there and pending indexes keep that status indefinitely.

      Attachments

        Issue Links

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

          Activity

            People

              simonbasle Simon Baslé (Inactive)
              simonbasle Simon Baslé (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes

                  PagerDuty