Description
Originally reported by Patrick Varley / CBSE-994
A lot of users set their compaction to run over midnight, however this is not possible from the cli as it checks to see if the --compaction-period-from is before the --compaction-period-to. You can do this from the WebUI.
/opt/couchbase/bin/couchbase-cli setting-compaction -u Administrator -p password -c localhost:8091 --compaction-period-from=23:00 --compaction-period-to=04:00 --enable-compaction-abort=0
ERROR: compaction from time period cannot be late than to time period
I think the follow code is at fault:
https://github.com/couchbase/couchbase-cli/blob/2.5.0/node.py#L337-L340