When running with eventlet's patching SRV support no longer works:
[2021/04/26 23:06:32.554] ERROR [0.036s]: test_addition (test_srv_polling.TestSrvPolling) [2021/04/26 23:06:32.554] ---------------------------------------------------------------------- [2021/04/26 23:06:32.554] Traceback (most recent call last): [2021/04/26 23:06:32.554] File "/data/mci/679ac69213f4298b07b5d4f0bfe3114a/src/test/test_srv_polling.py", line 165, in test_addition [2021/04/26 23:06:32.554] self.run_scenario(response, True) [2021/04/26 23:06:32.554] File "/data/mci/679ac69213f4298b07b5d4f0bfe3114a/src/test/test_srv_polling.py", line 153, in run_scenario [2021/04/26 23:06:32.554] client = MongoClient(self.CONNECTION_STRING) [2021/04/26 23:06:32.554] File "/data/mci/679ac69213f4298b07b5d4f0bfe3114a/src/pymongo/mongo_client.py", line 669, in __init__ [2021/04/26 23:06:32.554] connect_timeout=timeout) [2021/04/26 23:06:32.554] File "/data/mci/679ac69213f4298b07b5d4f0bfe3114a/src/pymongo/uri_parser.py", line 506, in parse_uri [2021/04/26 23:06:32.554] dns_options = dns_resolver.get_options() [2021/04/26 23:06:32.554] File "/data/mci/679ac69213f4298b07b5d4f0bfe3114a/src/pymongo/srv_resolver.py", line 70, in get_options [2021/04/26 23:06:32.554] raise ConfigurationError(str(exc)) [2021/04/26 23:06:32.554] ConfigurationError: The DNS response does not contain an answer to the question: test1.test.build.10gen.cc. IN TXT
This failure started happening after PYTHON-2364.
- is caused by
-
PYTHON-2364 Fix DeprecationWarning: please use dns.resolver.resolve() instead
- Closed
- is related to
-
PYTHON-2640 Replace dnspython with our own SRV dns implementation
- Development Complete
- links to