Description
The nodes list for a bucket is not immediately populated. This means that in rare cases we may see the bucket-create command return early despite using --wait, as it will see an empty list and the logic assumes that if every node in that list is healthy then the bucket is ready.
Since a bucket should always be on at least one node, we should additionally wait until the nodes list is non-empty.
Attachments
For Gerrit Dashboard: MB-59613 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
200737,2 | MB-59613: Wait until nodes != [] for bucket-create --wait | master | couchbase-cli | Status: MERGED | +2 | +1 |