-
Type: Bug
-
Resolution: Fixed
-
Priority: Blocker - P1
-
Affects Version/s: None
-
Component/s: None
-
None
This is a copy of the full logs. Our code works fine for pymongo v 3.12.3
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/celery/app/trace.py", line 451, in trace_task
R=retval=fun(*args, **kwargs)
File "/usr/local/lib/python3.9/site-packages/celery/app/trace.py", line 734, in _protected_call_
returnself.run(*args, **kwargs)
File "/scraper/app/tasks/insurances/a_scraper_task.py", line 25, in scraper_a
returnbase_scraper_a(
File "/scraper/app/tasks/common/base_a_scraper_task.py", line 38, in base_scraper_a
otp = scraper.wait_for_otp(request_id)
File "/scraper/app/services/base_scraper.py", line 175, in wait_for_otp
with db.scraper_tasks.watch(pipeline, full_document="updateLookup") as stream:
File "/usr/local/lib/python3.9/site-packages/pymongo/collection.py", line 2571, in watch
returnCollectionChangeStream(
File "/usr/local/lib/python3.9/site-packages/pymongo/change_stream.py", line 131, in _init_
self._cursor =self._create_cursor()
File "/usr/local/lib/python3.9/site-packages/pymongo/change_stream.py", line 221, in _create_cursor
returnself._run_aggregation_cmd(session=s, explicit_session=self._session isnotNone)
File "/usr/local/lib/python3.9/site-packages/pymongo/change_stream.py", line 215, in _run_aggregation_cmd
returnself._client._retryable_read(
File "/usr/local/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1365, in _retryable_read
withself._socket_from_server(read_pref, server, session) as (sock_info, read_pref):
File "/usr/local/lib/python3.9/contextlib.py", line 119, in _enter_
returnnext(self.gen)
File "/usr/local/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1221, in _socket_from_server
withself._get_socket(server, session) as sock_info:
File "/usr/local/lib/python3.9/contextlib.py", line 119, in _enter_
returnnext(self.gen)
File "/usr/local/lib/python3.9/site-packages/pymongo/mongo_client.py", line 1156, in _get_socket
with server.get_socket(handler=err_handler) as sock_info:
File "/usr/local/lib/python3.9/contextlib.py", line 119, in _enter_
returnnext(self.gen)
File "/usr/local/lib/python3.9/site-packages/pymongo/pool.py", line 1379, in get_socket
sock_info = self._get_socket()
File "/usr/local/lib/python3.9/site-packages/pymongo/pool.py", line 1444, in _get_socket
self._raise_if_not_ready(emit_event=True)
File "/usr/local/lib/python3.9/site-packages/pymongo/pool.py", line 1415, in _raise_if_not_ready
_raise_connection_failure(self.address, AutoReconnect("connection pool paused"))
File "/usr/local/lib/python3.9/site-packages/pymongo/pool.py", line 273, in _raise_connection_failure
raiseAutoReconnect(msg) from error
pymongo.errors.AutoReconnect: db-dev-shard-00-01.tpfr3.mongodb.net:27017: connection pool paused
- is caused by
-
PYTHON-2462 Implement and test connection pool paused state
- Closed
- is related to
-
PYTHON-2484 Locks in PyMongo should be sanitized on fork
- Closed