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 cf89ce3 commit 380b0b9Copy full SHA for 380b0b9
src/databricks/sql/telemetry/telemetry_client.py
@@ -316,7 +316,8 @@ class TelemetryClientFactory:
316
] = {} # Map of session_id_hex -> BaseTelemetryClient
317
_executor: Optional[ThreadPoolExecutor] = None
318
_initialized: bool = False
319
- _lock = threading.Lock() # Thread safety for factory operations
+ _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