From 16b0eeb3d64f8a51be75af0c0359ec17cfb857ca Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Patryk=20J=C4=99drzejczak?= Date: Tue, 12 Dec 2023 11:27:36 +0100 Subject: [PATCH] test: ManagerClient: servers_add: specify consistent-topology-changes assumption ManagerClient.servers_add can be called only if the cluster uses consistent topology changes. We add this specification to the leading comment. --- test/pylib/manager_client.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/pylib/manager_client.py b/test/pylib/manager_client.py index 18c37cb566..2150a3a7be 100644 --- a/test/pylib/manager_client.py +++ b/test/pylib/manager_client.py @@ -257,7 +257,10 @@ class ManagerClient(): property_file: Optional[dict[str, Any]] = None, start: bool = True, expected_error: Optional[str] = None) -> [ServerInfo]: - """Add new servers concurrently""" + """Add new servers concurrently. + This function can be called only if the cluster uses consistent topology changes, which support + concurrent bootstraps. If your test does not fulfill this condition and you want to add multiple + servers, you should use multiple server_add calls.""" assert servers_num > 0, f"servers_add: cannot add {servers_num} servers, servers_num must be positive" try: