Skip to content

Commit c0898eb

Browse files
committed
Depricate metadata_request_timeout
`metadata_request_timeout` was added to Cluster by mistake, there is already another option that controls system query timeout - `control_connection_timeout`. Mark it as depricated, to be removed in next minor release.
1 parent 2354c82 commit c0898eb

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

cassandra/cluster.py

+3
Original file line numberDiff line numberDiff line change
@@ -1082,6 +1082,8 @@ def default_retry_policy(self, policy):
10821082

10831083
metadata_request_timeout = datetime.timedelta(seconds=2)
10841084
"""
1085+
Deprecated: use control_connection_timeout instead.
1086+
10851087
Timeout for all queries used by driver it self.
10861088
Supported only by Scylla clusters.
10871089
"""
@@ -1300,6 +1302,7 @@ def __init__(self,
13001302

13011303
self.auth_provider = auth_provider
13021304
if metadata_request_timeout is not None:
1305+
warn("metadata_request_timeout is deprecated: use control_connection_timeout instead", DeprecationWarning)
13031306
self.metadata_request_timeout = metadata_request_timeout
13041307

13051308
if load_balancing_policy is not None:

0 commit comments

Comments
 (0)