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

Test Failure - deadlock in test_fork.TestFork.test_many_threaded Python 3.10 Ubuntu 18

    • Type: Icon: Build Failure Build Failure
    • Resolution: Duplicate
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None

      Saw a deadlock in test_fork.TestFork.test_many_threaded with Python 3.10 on Ubuntu 18:

       [2022/08/19 01:05:28.437]   test_lock_client (test_fork.TestFork) ... ok (0.475s)
       [2022/08/19 01:05:28.898]   test_lock_object_id (test_fork.TestFork) ... ok (0.459s)
       [2022/08/19 01:27:55.039] Command stopped early: context canceled
       [2022/08/19 01:27:55.081] Running task-timeout commands.
       [2022/08/19 01:27:55.081]   test_many_threaded (test_fork.TestFork) ...
       [2022/08/19 01:27:55.081] Running command 'shell.exec' (step 1 of 1)
       [2022/08/19 01:27:55.084] total 12
       [2022/08/19 01:27:55.084] drwxr-xr-x  5 ubuntu ubuntu   89 Aug 19 00:58 .
       [2022/08/19 01:27:55.084] drwxr-xr-x  4 ubuntu ubuntu  172 Aug 19 00:57 ..
       [2022/08/19 01:27:55.084] drwxr-xr-x  7 ubuntu ubuntu  226 Aug 19 00:58 drivers-tools
       [2022/08/19 01:27:55.084] -rw-r--r--  1 ubuntu ubuntu   57 Aug 19 00:58 mo-expansion.yml
       [2022/08/19 01:27:55.084] drwxr-xr-x 12 ubuntu ubuntu 4096 Aug 19 00:58 src
       [2022/08/19 01:27:55.084] drwxr-xr-x  2 ubuntu ubuntu    6 Aug 19 00:57 tmp
       [2022/08/19 01:27:55.084] -rw-r--r--  1 ubuntu ubuntu 2428 Aug 19 00:58 tmp.json
       [2022/08/19 01:27:55.085] Finished 'shell.exec' in 3.186044ms
       [2022/08/19 01:27:55.085] [message='Finished running timeout commands' total_time='3.413414ms']
       [2022/08/19 01:27:55.085] Task completed - FAILURE.
       [2022/08/19 01:27:55.119] Exception in thread Thread-257 (fork_behavior):
       [2022/08/19 01:27:55.119] Traceback (most recent call last):
       [2022/08/19 01:27:55.119]   File "/opt/python/3.10/lib/python3.10/threading.py", line 1009, in _bootstrap_inner
       [2022/08/19 01:27:55.134]     self.run()
       [2022/08/19 01:27:55.134]   File "/data/mci/89ced8399b759e07c3b3a061e54158bc/src/test/utils.py", line 965, in run
       [2022/08/19 01:27:55.134]     super(ExceptionCatchingThread, self).run()
       [2022/08/19 01:27:55.134]   File "/opt/python/3.10/lib/python3.10/threading.py", line 946, in run
       [2022/08/19 01:27:55.134]     self._target(*self._args, **self._kwargs)
       [2022/08/19 01:27:55.134]   File "/data/mci/89ced8399b759e07c3b3a061e54158bc/src/test/test_fork.py", line 109, in fork_behavior
       [2022/08/19 01:27:55.134]     with self.runner.fork() as pid:
       [2022/08/19 01:27:55.134]   File "/opt/python/3.10/lib/python3.10/contextlib.py", line 142, in __exit__
       [2022/08/19 01:27:55.134]     next(self.gen)
       [2022/08/19 01:27:55.134]   File "/data/mci/89ced8399b759e07c3b3a061e54158bc/src/test/__init__.py", line 1026, in fork
       [2022/08/19 01:27:55.134]     self.assertEqual(0, os.waitpid(pid, 0)[1])
       [2022/08/19 01:27:55.134]   File "/opt/python/3.10/lib/python3.10/unittest/case.py", line 845, in assertEqual
       [2022/08/19 01:27:55.134]     assertion_func(first, second, msg=msg)
       [2022/08/19 01:27:55.134]   File "/opt/python/3.10/lib/python3.10/unittest/case.py", line 838, in _baseAssertEqual
       [2022/08/19 01:27:55.134]     raise self.failureException(msg)
       [2022/08/19 01:27:55.134] AssertionError: 0 != 9
       [2022/08/19 01:27:55.291] Running post-task commands.
       [2022/08/19 01:27:55.291] Running command 's3.put' in "upload coverage" (step 1 of 6)
      

      https://evergreen.mongodb.com/task/mongo_python_driver_tests_python_version_ubuntu18_without_c_extensions__platform~ubuntu_18.04_auth_ssl~noauth_nossl_python_version~3.10_c_extensions~without_c_extensions_coverage~coverage_test_4.4_sharded_cluster_7f19186cacbcf3e2bcb42dba46997f5ff68c5378_22_08_19_00_06_02

            Assignee:
            shane.harvey@mongodb.com Shane Harvey
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: