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

couchbase-cli should have an option to wait until all recovery activity is done.

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Major
    • None
    • None
    • tools
    • None
    • 1

    Description

      Background

      Several customers use the tool couchbase-cli as follows:

      couchbase-cli recovery -c 10.142.181.101:8091 \
      --username Administrator \
      --password password \
      --server-recovery 10.142.181.102:8091 \
      --recovery-type delta

      Then they assume that a status message like 

      SUCCESS: Servers recovered

      They sometimes assume that this means they are good to go, but vBuckets are still being reshuffled in the data service and DCP connection may still be reshuffled and established in Eventing.
       
      Improvement ask

      It would be nice if we had a "-wait" or "-wait-no-tasks" argument to the above that would ensure no tasks are running as per the following REST call (which I believe is used for couchbase autonomous operator (CAO)

      curl -s -X GET -u  Administrator:password \
             http://localhost:8091/pools/default/tasks | jq .

      If nothing is being run you would see something like the following:

      [
       {
       "statusId": "02d758df53d4fb2521c4750a76bec9fe",
       "type": "rebalance",
       "status": "notRunning",
       "statusIsStale": false,
       "masterRequestTimedOut": false,
       "lastReportURI": "/logs/rebalanceReport?reportID=420cb5b730010542ab741d0f28f536f8"
       }
      ]

       

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            hyun-ju.vega Hyun-Ju Vega
            jon.strabala Jon Strabala
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty