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

Test failure - test_discovery_and_monitoring_integration_find_shutdown_error_Concurrent_shutdown_error_on_find blocks forever

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • 3.11
    • 3.11.1
    • Tests
    • None

    Description

      This test blocked forever:

       [2020/07/24 06:12:45.352] test_discovery_and_monitoring_integration_find_network_error_Reset_server_and_pool_after_network_error_on_find (test_discovery_and_monitoring.TestIntegration) ... ok
       [2020/07/24 06:41:23.299] Command stopped early: context canceled
       [2020/07/24 06:41:23.336] test_discovery_and_monitoring_integration_find_shutdown_error_Concurrent_shutdown_error_on_find (test_discovery_and_monitoring.TestIntegration) ...
      

      https://evergreen.mongodb.com/task/mongo_python_driver_cdecimal__platform~rhel62_python_version~2.7_cdecimal_7a539f227a9524b27ef469826ef9ee5bd4533773_20_07_22_18_49_57

      I believe the culprit is that the test suite calls thread join without a timeout in waitForThread here: https://github.com/mongodb/mongo-python-driver/blob/64f77068e197d97943e6fb42bf2789e10c940098/test/test_discovery_and_monitoring.py#L403

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: