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

Test failure - SRV support broken when running with eventlet

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.12, 4.0
    • Affects Version/s: None
    • Component/s: Tests
    • Labels:
      None

      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
      

      https://evergreen.mongodb.com/task/mongo_python_driver_3.12_tests_python_version_green_framework_amazon1__platform~awslinux_auth_ssl~auth_ssl_python_version~2.7_green_framework~eventlet_test_latest_standalone_a01fec53f6f2e57c169f5a769e515348cba78584_21_04_26_20_56_06

      This failure started happening after PYTHON-2364.

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

              Created:
              Updated:
              Resolved: