You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
test_client_disconnect (test.test_threads.TestThreads) ... Exception in thread Thread-1:
Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/threading.py", line 926, in _bootstrap_inner
self.run()
File "/Users/shane/git/mongo-python-driver/test/test_threads.py", line 61, in run
for document in self.collection.find():
File "/Users/shane/git/mongo-python-driver/pymongo/cursor.py", line 1207, in next
if len(self.__data) or self._refresh():
File "/Users/shane/git/mongo-python-driver/pymongo/cursor.py", line 1144, in _refresh
self.__send_message(g)
File "/Users/shane/git/mongo-python-driver/pymongo/cursor.py", line 1001, in __send_message
address=self.__address)
File "/Users/shane/git/mongo-python-driver/pymongo/mongo_client.py", line 1372, in _run_operation_with_response
exhaust=exhaust)
File "/Users/shane/git/mongo-python-driver/pymongo/mongo_client.py", line 1465, in _retryable_read
exhaust=exhaust) as (sock_info,
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/Users/shane/git/mongo-python-driver/pymongo/mongo_client.py", line 1309, in _slaveok_for_server
with self._get_socket(server, session, exhaust=exhaust) as sock_info:
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/Users/shane/git/mongo-python-driver/pymongo/mongo_client.py", line 1247, in _get_socket
self.__all_credentials, checkout=exhaust) as sock_info:
File "/Library/Frameworks/Python.framework/Versions/3.7/lib/python3.7/contextlib.py", line 112, in __enter__
return next(self.gen)
File "/Users/shane/git/mongo-python-driver/pymongo/pool.py", line 1320, in get_socket
sock_info = self._get_socket(all_credentials)
File "/Users/shane/git/mongo-python-driver/pymongo/pool.py", line 1370, in _get_socket
self._raise_if_not_ready()
File "/Users/shane/git/mongo-python-driver/pymongo/pool.py", line 1342, in _raise_if_not_ready
self.address, AutoReconnect('connection pool paused'))
File "/Users/shane/git/mongo-python-driver/pymongo/pool.py", line 288, in _raise_connection_failure
raise AutoReconnect(msg)
pymongo.errors.AutoReconnect: localhost:27017: connection pool paused
FAIL
======================================================================
FAIL: test_client_disconnect (test.test_threads.TestThreads)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/shane/git/mongo-python-driver/test/test_threads.py", line 203, in test_client_disconnect
self.assertTrue(t.passed)
AssertionError: False is not true
0 commit comments