Uploaded image for project: 'Couchbase Java Client'
  1. Couchbase Java Client
  2. JCBC-905 Index management feature in BucketManager
  3. JCBC-926

dropPrimaryIndex(true) does not work for def_primary on travel-sample

    XMLWordPrintable

Details

    • Technical task
    • Resolution: Fixed
    • Minor
    • 2.2.6
    • 2.2.5
    • Core
    • None

    Description

      When setting up a test, I wanted to ensure the primary index was not there first, then add an index. I called .dropPrimaryIndex(true) on the BucketManager, but the "def_primary" still existed. Dropping it by name worked.

      Is this because the primary index in this case had a name other than #primary?

      In either case, it was a bit confusing. The SDK-RFC doesn't seem to indicate anything special about the .dropPrimaryIndex() method.

      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)
              ingenthr Matt Ingenthron
              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