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

Tests: AttributeError: 'SrvMonitor' object has no attribute '_seedlist'

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.9
    • Affects Version/s: None
    • Component/s: None
    • None

      An SrvMonitor is failing in the test suite with this error (the tests still pass):

       [2019/06/13 16:03:41.542]   test_addition (test_srv_polling.TestSRVPolling) ... ok (0.181s)
       [2019/06/13 16:03:44.662]   test_dns_failures (test_srv_polling.TestSRVPolling) ... ok (3.122s)
       [2019/06/13 16:03:44.699]   test_dns_record_lookup_empty (test_srv_polling.TestSRVPolling) ... Exception in thread pymongo_srv_polling_thread:
       [2019/06/13 16:03:44.699] Traceback (most recent call last):
       [2019/06/13 16:03:44.699]   File "/opt/python/2.7/lib/python2.7/threading.py", line 801, in __bootstrap_inner
       [2019/06/13 16:03:44.699]     self.run()
       [2019/06/13 16:03:44.699]   File "/opt/python/2.7/lib/python2.7/threading.py", line 754, in run
       [2019/06/13 16:03:44.699]     self.__target(*self.__args, **self.__kwargs)
       [2019/06/13 16:03:44.699]   File "/data/mci/02475873e5b4a6a6596e36468c512763/src/pymongo/periodic_executor.py", line 118, in _run
       [2019/06/13 16:03:44.699]     if not self._target():
       [2019/06/13 16:03:44.699]   File "/data/mci/02475873e5b4a6a6596e36468c512763/src/pymongo/monitor.py", line 215, in target
       [2019/06/13 16:03:44.699]     SrvMonitor._run(monitor)
       [2019/06/13 16:03:44.699]   File "/data/mci/02475873e5b4a6a6596e36468c512763/src/pymongo/monitor.py", line 232, in _run
       [2019/06/13 16:03:44.699]     self._seedlist = self._get_seedlist()
       [2019/06/13 16:03:44.699]   File "/data/mci/02475873e5b4a6a6596e36468c512763/src/pymongo/monitor.py", line 254, in _get_seedlist
       [2019/06/13 16:03:44.699]     return self._seedlist
       [2019/06/13 16:03:44.699] AttributeError: 'SrvMonitor' object has no attribute '_seedlist'
       [2019/06/13 16:03:45.865] ok (1.035s)
       

      https://evergreen.mongodb.com/task/mongo_python_driver_tests_storage_engines__python_version~2.7_storage_engine~inmemory_test_latest_standalone_f588412b678009e803395ee8732b03cb720c1ffd_19_06_13_22_50_49

            Assignee:
            prashant.mital Prashant Mital (Inactive)
            Reporter:
            shane.harvey@mongodb.com Shane Harvey
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: