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
Attachments
For Gerrit Dashboard: MB-10424 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
35684,2 | MB-10424: dont check compaction range | master | couchbase-cli | Status: MERGED | +2 | +1 |