Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-5276

Test Failure - test.test_fork.TestFork.test_lock_object_id timing out

    • Type: Icon: Build Failure Build Failure
    • Resolution: Unresolved
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: greenerbuild
    • None
    • None
    • Python Drivers
    • None
    • None
    • None
    • None
    • None
    • None

      Name of Failure:

      test.test_fork.TestFork.test_lock_object_id

      Link to task:

      https://spruce.mongodb.com/task/mongo_python_driver_no_c_ext_rhel8_python3.12_test_7.0_standalone_noauth_nossl_sync_patch_79e5d601397f6d3891d9eaf881b43fd40a712ee2_67f3ed2eeac9cd00079c493f_25_04_07_15_20_38?execution=0&sortBy=STATUS&sortDir=ASC

      Context of when and why the failure occurred:

      Stack trace:

       [2025/04/07 08:31:58.227] FAILURE: AssertionError: child timed out after 60s (see traceback in logs): deadlock? ()
       [2025/04/07 08:31:58.227] self = <test.test_fork.TestFork testMethod=test_lock_object_id>
       [2025/04/07 08:31:58.227]     def test_lock_object_id(self):
       [2025/04/07 08:31:58.227]         # Forks the client with ObjectId's _inc_lock locked.
       [2025/04/07 08:31:58.227]         # Parent => _inc_lock should remain locked.
       [2025/04/07 08:31:58.227]         # Child => _inc_lock should be unlocked.
       [2025/04/07 08:31:58.227]         with ObjectId._inc_lock:
       [2025/04/07 08:31:58.227]     
       [2025/04/07 08:31:58.227]             def target():
       [2025/04/07 08:31:58.227]                 self.assertFalse(ObjectId._inc_lock.locked())
       [2025/04/07 08:31:58.227]                 self.assertTrue(ObjectId())
       [2025/04/07 08:31:58.227]     
       [2025/04/07 08:31:58.227] >           with self.fork(target):
       [2025/04/07 08:31:58.227] test/test_fork.py:65: 
       [2025/04/07 08:31:58.227] _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
       [2025/04/07 08:31:58.227] /opt/python/3.12/lib/python3.12/contextlib.py:144: in __exit__
       [2025/04/07 08:31:58.227]     next(self.gen)
       [2025/04/07 08:31:58.227] test/__init__.py:996: in fork
       [2025/04/07 08:31:58.227]     self.fail(f"child timed out after {timeout}s (see traceback in logs): deadlock?")
       [2025/04/07 08:31:58.227] E   AssertionError: child timed out after 60s (see traceback in logs): deadlock?
      

            Assignee:
            Unassigned Unassigned
            Reporter:
            noah.stapp@mongodb.com Noah Stapp
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: