Skip to content

Deprecate metadata_request_timeout #469

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions cassandra/cluster.py
Original file line number Diff line number Diff line change
Expand Up @@ -1082,6 +1082,8 @@ def default_retry_policy(self, policy):

metadata_request_timeout = datetime.timedelta(seconds=2)
"""
Deprecated: use control_connection_timeout instead.

Timeout for all queries used by driver it self.
Supported only by Scylla clusters.
"""
Expand Down Expand Up @@ -1300,6 +1302,7 @@ def __init__(self,

self.auth_provider = auth_provider
if metadata_request_timeout is not None:
warn("metadata_request_timeout is deprecated: use control_connection_timeout instead", DeprecationWarning)
self.metadata_request_timeout = metadata_request_timeout

if load_balancing_policy is not None:
Expand Down
Loading