Details
-
Improvement
-
Resolution: Unresolved
-
Major
-
None
-
None
-
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"
|
}
|
]
|