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

Potential hang in CSFLE when reading a KMS network response

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 3.12.2, 4.0
    • Affects Version/s: None
    • Component/s: None
    • None

      The Windows Python 3.10 kmip TestKmsTLSOptions tests needed to be disabled in PYTHON-3004 because they were hanging for 27+ minutes. For example:

       [2021/11/13 01:29:46.852] test_01_aws (test_encryption.TestKmsTLSOptions) ... ok
       [2021/11/13 01:55:42.936] Command stopped early: context canceled
       [2021/11/13 01:55:42.964] test_02_azure (test_encryption.TestKmsTLSOptions) ...
       [2021/11/13 01:55:42.968] Running task-timeout commands.
      

      https://spruce.mongodb.com/task/mongo_python_driver_tests_windows_encryption__platform~windows_64_vsMulti_small_auth_ssl~noauth_nossl_python_version_windows~3.10_encryption~encryption_test_5.0_standalone_patch_370e1652ad97a2dbfd33400fc0e23a6c2fc4a5d5_618f0d5b2fbabe69a61790b6_21_11_13_00_57_00/logs?execution=0&sortBy=STATUS&sortDir=ASC

      It should be impossible for this test to hang because we set a 10 second connect+socket timeout for KMS connections. More investigation is needed. It would also be great if the timeout task would cause the test suite to print out all tracebacks for all threads.

            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: