-
Type: Build Failure
-
Resolution: Unresolved
-
Priority: Minor - P4
-
None
-
Affects Version/s: None
-
Component/s: Tests
-
None
This test has started failing periodically:
ERROR: test_srv_max_hosts_kwarg (test_client.TestClient) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/runner/work/mongo-python-driver/mongo-python-driver/pymongo/srv_resolver.py", line 77, in get_options results = _resolve(self.__fqdn, "TXT", lifetime=self.__connect_timeout) File "/home/runner/work/mongo-python-driver/mongo-python-driver/pymongo/srv_resolver.py", line 43, in _resolve return resolver.resolve(*args, **kwargs) File "/home/runner/work/mongo-python-driver/mongo-python-driver/.eggs/dnspython-2.3.0-py3.10.egg/dns/resolver.py", line 1368, in resolve return get_default_resolver().resolve( File "/home/runner/work/mongo-python-driver/mongo-python-driver/.eggs/dnspython-2.3.0-py3.10.egg/dns/resolver.py", line 1204, in resolve timeout = self._compute_timeout(start, lifetime, resolution.errors) File "/home/runner/work/mongo-python-driver/mongo-python-driver/.eggs/dnspython-2.3.0-py3.10.egg/dns/resolver.py", line 988, in _compute_timeout raise LifetimeTimeout(timeout=duration, errors=errors) dns.resolver.LifetimeTimeout: The resolution lifetime expired after 21.120 seconds: Server 127.0.0.53 UDP port 53 answered The DNS operation timed out.; Server 127.0.0.53 UDP port 53 answered The DNS operation timed out.; Server 127.0.0.53 UDP port 53 answered The DNS operation timed out.; Server 127.0.0.53 UDP port 53 answered The DNS operation timed out.; Server 127.0.0.53 UDP port 53 answered The DNS operation timed out.; Server 127.0.0.53 UDP port 53 answered The DNS operation timed out.; Server 127.0.0.53 UDP port 53 answered The DNS operation timed out. During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/runner/work/mongo-python-driver/mongo-python-driver/test/test_client.py", line 1709, in test_srv_max_hosts_kwarg client = MongoClient("mongodb+srv://test1.test.build.10gen.cc/", srvmaxhosts=1) File "/home/runner/work/mongo-python-driver/mongo-python-driver/pymongo/mongo_client.py", line 747, in __init__ res = uri_parser.parse_uri( File "/home/runner/work/mongo-python-driver/mongo-python-driver/pymongo/uri_parser.py", line 540, in parse_uri dns_options = dns_resolver.get_options() File "/home/runner/work/mongo-python-driver/mongo-python-driver/pymongo/srv_resolver.py", line 82, in get_options raise ConfigurationError(str(exc)) pymongo.errors.ConfigurationError: The resolution lifetime expired after 21.120 seconds: Server 127.0.0.53 UDP port 53 answered The DNS operation timed out.; Server 127.0.0.53 UDP port 53 answered The DNS operation timed out.; Server 127.0.0.53 UDP port 53 answered The DNS operation timed out.; Server 127.0.0.53 UDP port 53 answered The DNS operation timed out.; Server 127.0.0.53 UDP port 53 answered The DNS operation timed out.; Server 127.0.0.53 UDP port 53 answered The DNS operation timed out.; Server 127.0.0.53 UDP port 53 answered The DNS operation timed out.
https://github.com/ShaneHarvey/mongo-python-driver/actions/runs/5282751029/jobs/9558068702