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 7ca12a4 commit 095491aCopy full SHA for 095491a
src/databricks/sql/telemetry/telemetry_client.py
@@ -317,6 +317,7 @@ class TelemetryClientFactory:
317
_executor: Optional[ThreadPoolExecutor] = None
318
_initialized: bool = False
319
_lock = threading.RLock() # Thread safety for factory operations
320
+ # used RLock instead of Lock to avoid deadlocks when garbage collection is triggered
321
_original_excepthook = None
322
_excepthook_installed = False
323
0 commit comments