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

coucbase-cli for compaction schedule should not check range

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • Critical
    • 3.0
    • 2.2.0
    • tools
    • Security Level: Public
    • None

    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

        Activity

          People

            bcui Bin Cui (Inactive)
            steve Steve Yen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty