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

Test Failure - test_many_threaded failing on Gevent and Eventlet

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.3
    • Affects Version/s: None
    • Component/s: None
    • None

      test_many_threaded failing on Gevent and Eventlet:

       [2022/08/16 21:41:30.074]   test_lock_client (test_fork.TestFork)
       [2022/08/16 21:41:30.184] Forks the client with some items locked. ... ok (0.110s)
       [2022/08/16 21:41:30.184]   test_lock_object_id (test_fork.TestFork)
       [2022/08/16 21:41:30.293] Forks the client with ObjectId's _inc_lock locked. ... ok (0.107s)
       [2022/08/16 21:41:30.325]   test_many_threaded (test_fork.TestFork) ... Exception in thread Thread-238:
       [2022/08/16 21:41:30.325] Traceback (most recent call last):
       [2022/08/16 21:41:30.325]   File "/opt/python/3.9/lib/python3.9/threading.py", line 973, in _bootstrap_inner
       [2022/08/16 21:41:30.326]     self.run()
       [2022/08/16 21:41:30.326]   File "/data/mci/bdd3647431b27c78ae0b2a8ff6b835ce/src/test/utils.py", line 953, in run
       [2022/08/16 21:41:30.327]     super(ExceptionCatchingThread, self).run()
       [2022/08/16 21:41:30.327]   File "/opt/python/3.9/lib/python3.9/threading.py", line 910, in run
       [2022/08/16 21:41:30.327]     self._target(*self._args, **self._kwargs)
       [2022/08/16 21:41:30.327]   File "/data/mci/bdd3647431b27c78ae0b2a8ff6b835ce/src/test/test_fork.py", line 149, in fork_behavior
       [2022/08/16 21:41:30.327]     action(rc)
       [2022/08/16 21:41:30.327]   File "/data/mci/bdd3647431b27c78ae0b2a8ff6b835ce/src/test/test_fork.py", line 130, in action
       [2022/08/16 21:41:30.328]     client.admin.command("ping")
       [2022/08/16 21:41:30.328]   File "/data/mci/bdd3647431b27c78ae0b2a8ff6b835ce/src/pymongo/_csot.py", line 105, in csot_wrapper
       [2022/08/16 21:41:30.328]     return func(self, *args, **kwargs)
       [2022/08/16 21:41:30.328]   File "/data/mci/bdd3647431b27c78ae0b2a8ff6b835ce/src/pymongo/database.py", line 799, in command
       [2022/08/16 21:41:30.328]     with self.__client._socket_for_reads(read_preference, session) as (
       [2022/08/16 21:41:30.328]   File "/data/mci/bdd3647431b27c78ae0b2a8ff6b835ce/src/pymongo/mongo_client.py", line 1289, in _socket_for_reads
       [2022/08/16 21:41:30.329]     server = self._select_server(read_preference, session)
       [2022/08/16 21:41:30.329]   File "/data/mci/bdd3647431b27c78ae0b2a8ff6b835ce/src/pymongo/mongo_client.py", line 1240, in _select_server
       [2022/08/16 21:41:30.330]     topology = self._get_topology()
       [2022/08/16 21:41:30.330]   File "/data/mci/bdd3647431b27c78ae0b2a8ff6b835ce/src/pymongo/mongo_client.py", line 1198, in _get_topology
       [2022/08/16 21:41:30.330]     self._kill_cursors_executor.open()
       [2022/08/16 21:41:30.330]   File "src/gevent/_semaphore.py", line 281, in gevent._gevent_c_semaphore.Semaphore.__exit__
       [2022/08/16 21:41:30.331]   File "src/gevent/_semaphore.py", line 282, in gevent._gevent_c_semaphore.Semaphore.__exit__
       [2022/08/16 21:41:30.332]   File "src/gevent/_semaphore.py", line 496, in gevent._gevent_c_semaphore.BoundedSemaphore.release
       [2022/08/16 21:41:30.333]   File "src/gevent/_semaphore.py", line 496, in gevent._gevent_c_semaphore.BoundedSemaphore.release
       [2022/08/16 21:41:30.333]   File "src/gevent/_semaphore.py", line 502, in gevent._gevent_c_semaphore.BoundedSemaphore.release
       [2022/08/16 21:41:30.374] RuntimeError: Semaphore released too many times
       [2022/08/16 21:41:30.374] /data/mci/bdd3647431b27c78ae0b2a8ff6b835ce/src/pymongo/monitor.py:213: ResourceWarning: unclosed <socket object, fd=5, family=2, type=1, proto=6>
       [2022/08/16 21:41:30.374]   return self._check_once()
       [2022/08/16 21:41:30.374] ResourceWarning: Enable tracemalloc to get the object allocation traceback
      

      https://evergreen.mongodb.com/task/mongo_python_driver_tests_python_version_green_framework_ubuntu18__platform~ubuntu_18.04_auth_ssl~noauth_nossl_python_version~3.9_green_framework~gevent_test_6.0_standalone_4170dc958e2ac1a43d92fe0ea3bb8f22674cff0a_22_08_16_17_40_28

            Assignee:
            ben.warner@mongodb.com Ben Warner (Inactive)
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: