Skip to content

bugfix: stalling test issue (close in TelemetryClientFactory) #609

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

Merged
merged 10 commits into from
Jun 23, 2025

Conversation

saishreeeee
Copy link
Collaborator

@saishreeeee saishreeeee commented Jun 19, 2025

What type of PR is this?

  • Refactor
  • Feature
  • Bug Fix
  • Other

Description

A test was stalling in python 3.13 with pytest 7.4.4.
When pytest version changed to 8.3.2, py3.13 ran fine but got stuck in py3.9.
Removed test before it with the same patch, passes
Removed module level lock, passes
Changed conditional check logic, passes
Remove test before stalling test, passes
Changed order by appending a in start of stalling test name, got stuck in a different test

Figured out the problem: garbage collector runs on the same thread that triggers it and interrupts the current function to execute.
Solution: changed Lock to RLock as RLock allows the same thread to acquire the lock multiple times without blocking.

How is this tested?

  • Unit tests
  • E2E Tests
  • Manually
  • N/A

Related Tickets & Documents

Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
@saishreeeee saishreeeee self-assigned this Jun 22, 2025
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
@saishreeeee saishreeeee marked this pull request as ready for review June 23, 2025 04:35
Signed-off-by: Sai Shree Pradhan <saishree.pradhan@databricks.com>
@saishreeeee saishreeeee merged commit 380b0b9 into telemetry Jun 23, 2025
22 of 27 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants