-
Type: Task
-
Resolution: Gone away
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: None
-
None
DNS resolution is timing out for our SRV polling tests.
ERROR: The DNS operation timed out after 21.122084140777588 seconds (ConfigurationError) Traceback (most recent call last): File "/data/mci/984c33e834a32b6c7f8321beea54412f/src/pymongo/srv_resolver.py", line 72, in _resolve_uri results = resolver.query('_mongodb._tcp.' + self.__fqdn, 'SRV', File "/data/mci/984c33e834a32b6c7f8321beea54412f/src/test/utils.py", line 307, in __call__ return self._function(*args, **kwargs) File "/opt/python/3.8/lib/python3.8/site-packages/dns/resolver.py", line 1221, in query return resolve(qname, rdtype, rdclass, tcp, source, File "/opt/python/3.8/lib/python3.8/site-packages/dns/resolver.py", line 1205, in resolve return get_default_resolver().resolve(qname, rdtype, rdclass, tcp, source, File "/opt/python/3.8/lib/python3.8/site-packages/dns/resolver.py", line 1043, in resolve timeout = self._compute_timeout(start, lifetime) File "/opt/python/3.8/lib/python3.8/site-packages/dns/resolver.py", line 950, in _compute_timeout raise Timeout(timeout=duration) dns.exception.Timeout: The DNS operation timed out after 21.122084140777588 seconds During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/data/mci/984c33e834a32b6c7f8321beea54412f/src/test/test_srv_polling.py", line 165, in test_addition self.run_scenario(response, True) File "/data/mci/984c33e834a32b6c7f8321beea54412f/src/test/test_srv_polling.py", line 153, in run_scenario client = MongoClient(self.CONNECTION_STRING) File "/data/mci/984c33e834a32b6c7f8321beea54412f/src/pymongo/mongo_client.py", line 639, in __init__ res = uri_parser.parse_uri( File "/data/mci/984c33e834a32b6c7f8321beea54412f/src/pymongo/uri_parser.py", line 500, in parse_uri nodes = dns_resolver.get_hosts() File "/data/mci/984c33e834a32b6c7f8321beea54412f/src/pymongo/srv_resolver.py", line 102, in get_hosts _, nodes = self._get_srv_response_and_hosts(True) File "/data/mci/984c33e834a32b6c7f8321beea54412f/src/pymongo/srv_resolver.py", line 83, in _get_srv_response_and_hosts results = self._resolve_uri(encapsulate_errors) File "/data/mci/984c33e834a32b6c7f8321beea54412f/src/pymongo/srv_resolver.py", line 79, in _resolve_uri raise ConfigurationError(str(exc)) pymongo.errors.ConfigurationError: The DNS operation timed out after 21.122084140777588 seconds
- is related to
-
PYTHON-2640 Replace dnspython with our own SRV dns implementation
- Development Complete