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

It's not possible to change auto-compaction settings after changing internal 2i settings

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 4.5.1
    • 4.5.0, 5.0.0
    • secondary-index
    • None

    Description

      Steps:

      • Install a single data+index CB instance
      • Make sure that compaction settings work correctly

        Request URL:http://172.23.100.70:8091/controller/setAutoCompaction?just_validate=1
        Request Method:POST
        Status Code:200 OK
         
        databaseFragmentationThreshold[percentage]:30
        indexCircularCompaction[daysOfWeek]:Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday
        indexCircularCompaction[interval][abortOutside]:false
        indexCircularCompaction[interval][fromHour]:0
        indexCircularCompaction[interval][fromMinute]:0
        indexCircularCompaction[interval][toHour]:0
        indexCircularCompaction[interval][toMinute]:0
        indexCompactionMode:circular
        indexFragmentationThreshold[percentage]:30
        indexFragmentationThreshold[size]:NaN
        parallelDBAndViewCompaction:false
        purgeInterval:3
        viewFragmentationThreshold[percentage]:30
         
        {"errors":{}}
        

      • Change any 2i settings:

        > curl -XPOST -d '{"indexer.settings.wal_size":40960}' http://Administrator:password@172.23.100.70:9102/settings 
        OK
        

      • Check UI again:

        Request URL:http://172.23.100.70:8091/controller/setAutoCompaction?just_validate=1
        Request Method:POST
        Status Code:400 Bad Request
         
        databaseFragmentationThreshold[percentage]:30
        indexCircularCompaction[daysOfWeek]:sunday,monday,tuesday,wednesday,thursday,friday,saturday
        indexCircularCompaction[interval][abortOutside]:false
        indexCircularCompaction[interval][fromHour]:0
        indexCircularCompaction[interval][fromMinute]:0
        indexCircularCompaction[interval][toHour]:0
        indexCircularCompaction[interval][toMinute]:0
        indexCompactionMode:circular
        indexFragmentationThreshold[percentage]:30
        indexFragmentationThreshold[size]:NaN
        parallelDBAndViewCompaction:false
        purgeInterval:3
        viewFragmentationThreshold[percentage]:30
         
        {"errors":{"indexCircularCompaction[daysOfWeek]":"index circular compaction days must be one of [\"Sunday\",\"Monday\",\"Tuesday\",\n    
        
        

      Note: HTTP requests and responses are copied from the browser console.

      Attachments

        1. logs.zip
          17.80 MB
        2. step1.png
          step1.png
          466 kB
        3. step2.png
          step2.png
          779 kB
        4. step3.png
          step3.png
          782 kB

        Issue Links

          Activity

            People

              pavelpaulau Pavel Paulau (Inactive)
              pavelpaulau Pavel Paulau (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              14 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                PagerDuty