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.
This commit is contained in:
Patryk Jędrzejczak
2023-12-12 11:27:36 +01:00
committed by Patryk Jędrzejczak
parent f4bd86384b
commit 16b0eeb3d6

View File

@@ -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: