Skip to content

Commit deef881

Browse files
committed
RLOCK IS THE SOLUTION
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
1 parent e94978f commit deef881

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/databricks/sql/telemetry/telemetry_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ class TelemetryClientFactory:
316316
] = {} # Map of session_id_hex -> BaseTelemetryClient
317317
_executor: Optional[ThreadPoolExecutor] = None
318318
_initialized: bool = False
319-
_lock = threading.Lock() # Thread safety for factory operations
319+
_lock = threading.RLock() # Thread safety for factory operations
320320
_original_excepthook = None
321321
_excepthook_installed = False
322322

0 commit comments

Comments
 (0)