We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 932ee0d commit eb95bccCopy full SHA for eb95bcc
src/databricks/sql/telemetry/telemetry_client.py
@@ -124,10 +124,13 @@ class NoopTelemetryClient(BaseTelemetryClient):
124
"""
125
126
_instance = None
127
+ _lock = threading.RLock()
128
129
def __new__(cls):
130
if cls._instance is None:
- cls._instance = super(NoopTelemetryClient, cls).__new__(cls)
131
+ with cls._lock:
132
+ if cls._instance is None:
133
+ cls._instance = super(NoopTelemetryClient, cls).__new__(cls)
134
return cls._instance
135
136
def export_initial_telemetry_log(self, driver_connection_params, user_agent):
0 commit comments