Uploaded image for project: 'Python Driver'
  1. Python Driver
  2. PYTHON-3742

Test Failure - The DNS operation timed out in SRV tests

    • Type: Icon: Build Failure Build Failure
    • Resolution: Unresolved
    • Priority: Icon: Minor - P4 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

            Assignee:
            Unassigned Unassigned
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: