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

Test Failure - test.test_encryption.TestRewrapWithSeparateClientEncryption Windows

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.3
    • Affects Version/s: None
    • Component/s: None
    • None

      TestRewrapWithSeparateClientEncryption is failing consistently on windows:

       [2022/08/16 23:36:14.398] ERROR: test_rewrap (test.test_encryption.TestRewrapWithSeparateClientEncryption) (src_provider='aws', dst_provider='aws')
       [2022/08/16 23:36:14.398] ----------------------------------------------------------------------
       [2022/08/16 23:36:14.398] Traceback (most recent call last):
       [2022/08/16 23:36:14.398]   File "C:\data\mci\bcc87f5572bfe046f7a0f6169387b0d7\src\pymongo\encryption.py", line 76, in _wrap_encryption_errors
       [2022/08/16 23:36:14.398]     yield
       [2022/08/16 23:36:14.398]   File "C:\data\mci\bcc87f5572bfe046f7a0f6169387b0d7\src\pymongo\encryption.py", line 841, in rewrap_many_data_key
       [2022/08/16 23:36:14.398]     raw_result = self._encryption.rewrap_many_data_key(filter, provider, master_key)
       [2022/08/16 23:36:14.398]   File "Z:\data\mci\bcc87f5572bfe046f7a0f6169387b0d7\src\venv-encryption\lib\site-packages\pymongocrypt\explicit_encrypter.py", line 177, in rewrap_many_data_key
       [2022/08/16 23:36:14.398]     return run_state_machine(ctx, self.callback)
       [2022/08/16 23:36:14.398]   File "Z:\data\mci\bcc87f5572bfe046f7a0f6169387b0d7\src\venv-encryption\lib\site-packages\pymongocrypt\state_machine.py", line 144, in run_state_machine
       [2022/08/16 23:36:14.398]     for key in callback.fetch_keys(key_filter):
       [2022/08/16 23:36:14.398]   File "C:\data\mci\bcc87f5572bfe046f7a0f6169387b0d7\src\pymongo\encryption.py", line 217, in fetch_keys
       [2022/08/16 23:36:14.398]     for key in cursor:
       [2022/08/16 23:36:14.398]   File "C:\data\mci\bcc87f5572bfe046f7a0f6169387b0d7\src\pymongo\cursor.py", line 1248, in next
       [2022/08/16 23:36:14.398]     if len(self.__data) or self._refresh():
       [2022/08/16 23:36:14.398]   File "C:\data\mci\bcc87f5572bfe046f7a0f6169387b0d7\src\pymongo\cursor.py", line 1139, in _refresh
       [2022/08/16 23:36:14.398]     self.__session = self.__collection.database.client._ensure_session()
       [2022/08/16 23:36:14.398]   File "C:\data\mci\bcc87f5572bfe046f7a0f6169387b0d7\src\pymongo\mongo_client.py", line 1733, in _ensure_session
       [2022/08/16 23:36:14.398]     return self.__start_session(True, causal_consistency=False)
       [2022/08/16 23:36:14.398]   File "C:\data\mci\bcc87f5572bfe046f7a0f6169387b0d7\src\pymongo\mongo_client.py", line 1678, in __start_session
       [2022/08/16 23:36:14.398]     self._topology._check_implicit_session_support()
       [2022/08/16 23:36:14.398]   File "C:\data\mci\bcc87f5572bfe046f7a0f6169387b0d7\src\pymongo\topology.py", line 539, in _check_implicit_session_support
       [2022/08/16 23:36:14.398]     self._check_session_support()
       [2022/08/16 23:36:14.398]   File "C:\data\mci\bcc87f5572bfe046f7a0f6169387b0d7\src\pymongo\topology.py", line 555, in _check_session_support
       [2022/08/16 23:36:14.398]     self._select_servers_loop(
       [2022/08/16 23:36:14.398]   File "C:\data\mci\bcc87f5572bfe046f7a0f6169387b0d7\src\pymongo\topology.py", line 239, in _select_servers_loop
       [2022/08/16 23:36:14.398]     raise ServerSelectionTimeoutError(
       [2022/08/16 23:36:14.398] pymongo.errors.ServerSelectionTimeoutError: localhost:27017: [WinError 10054] An existing connection was forcibly closed by the remote host, Timeout: 30s, Topology Description: <TopologyDescription id: 62fc26bae6a345f15ebaacea, topology_type: Unknown, servers: [<ServerDescription ('localhost', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('localhost:27017: [WinError 10054] An existing connection was forcibly closed by the remote host')>]>
       [2022/08/16 23:36:14.398] During handling of the above exception, another exception occurred:
       [2022/08/16 23:36:14.398] Traceback (most recent call last):
       [2022/08/16 23:36:14.398]   File "C:\data\mci\bcc87f5572bfe046f7a0f6169387b0d7\src\test\test_encryption.py", line 2250, in test_rewrap
       [2022/08/16 23:36:14.398]     self.run_test(src_provider, dst_provider)
       [2022/08/16 23:36:14.398]   File "C:\data\mci\bcc87f5572bfe046f7a0f6169387b0d7\src\test\test_encryption.py", line 2289, in run_test
       [2022/08/16 23:36:14.398]     rewrap_many_data_key_result = client_encryption2.rewrap_many_data_key(
       [2022/08/16 23:36:14.398]   File "C:\data\mci\bcc87f5572bfe046f7a0f6169387b0d7\src\pymongo\encryption.py", line 840, in rewrap_many_data_key
       [2022/08/16 23:36:14.398]     with _wrap_encryption_errors():
       [2022/08/16 23:36:14.398]   File "C:\python\Python310\lib\contextlib.py", line 153, in __exit__
       [2022/08/16 23:36:14.398]     self.gen.throw(typ, value, traceback)
       [2022/08/16 23:36:14.398]   File "C:\data\mci\bcc87f5572bfe046f7a0f6169387b0d7\src\pymongo\encryption.py", line 82, in _wrap_encryption_errors
       [2022/08/16 23:36:14.398]     raise EncryptionError(exc)
       [2022/08/16 23:36:14.398] pymongo.errors.EncryptionError: localhost:27017: [WinError 10054] An existing connection was forcibly closed by the remote host, Timeout: 30s, Topology Description: <TopologyDescription id: 62fc26bae6a345f15ebaacea, topology_type: Unknown, servers: [<ServerDescription ('localhost', 27017) server_type: Unknown, rtt: None, error=AutoReconnect('localhost:27017: [WinError 10054] An existing connection was forcibly closed by the remote host')>]>
      

      https://evergreen.mongodb.com/task/mongo_python_driver_tests_windows_encryption__platform~windows_64_vsMulti_small_auth_ssl~auth_ssl_python_version_windows~3.10_encryption~encryption_test_6.0_standalone_4170dc958e2ac1a43d92fe0ea3bb8f22674cff0a_22_08_16_17_40_28

      Caused by PYTHON-3385

            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: