Details
-
Bug
-
Resolution: Fixed
-
Major
-
4.5.0, 5.0.0
-
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.