Uploaded image for project: 'Couchbase Kubernetes'
  1. Couchbase Kubernetes
  2. K8S-3617

Enable RedistributeIndexes to be changed

    XMLWordPrintable

Details

    • 0

    Description

      The RedistributeIndexes value in the indexer settings can't be updated during a reconcile if the value is changing from true -> false. 

       

      RedistributeIndexes isn't a pointer, and is a bool with omitempty. When the index settings are encoded, the field is removed from the request because isEmptyValue() returns true when the boolean value is false. A fix should be put in place so the value can be updated.

       

      It's also worth checking this doesn't effect other settings trying to reconcile.

       

      Steps taken

      • Create a cluster with redistributeIndexes set to true in the spec
      • Edit the cluster and set the field to false
      • The reconcile will continually try and update the value but fail to do so

      Attachments

        Activity

          People

            justin.ashworth Justin Ashworth
            ben.mottershead Ben Mottershead
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              PagerDuty