-
Type: Task
-
Resolution: Fixed
-
Priority: Unknown
-
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
- is caused by
-
PYTHON-3393 Add stress test for MongoClient fork safety
- Closed