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

Test Failure - TestEncryptedBulkWrite with libmongocrypt 1.4.0-pre1+20220330gitc425e08f1c

    • Type: Icon: Task Task
    • Resolution: Gone away
    • Priority: Icon: Unknown Unknown
    • None
    • Affects Version/s: None
    • Component/s: Tests
    • None

      This test started failing today (3/30/22) with libmongocrypt latest:

       [2022/03/30 23:50:19.219] pymongocrypt version: 1.2.1.dev0
       [2022/03/30 23:50:19.219] libmongocrypt version: 1.4.0-pre1+20220330gitc425e08f1c
      
       [2022/03/30 23:57:28.140] ERROR: test_upsert_uuid_standard_encrypte (test_encryption.TestEncryptedBulkWrite)
       [2022/03/30 23:57:28.140] ----------------------------------------------------------------------
       [2022/03/30 23:57:28.140] Traceback (most recent call last):
       [2022/03/30 23:57:28.140]   File "/data/mci/8efde6c0c17eec36897922444e4af3ee/src/pymongo/encryption.py", line 69, in _wrap_encryption_errors
       [2022/03/30 23:57:28.140]     yield
       [2022/03/30 23:57:28.140]   File "/data/mci/8efde6c0c17eec36897922444e4af3ee/src/pymongo/encryption.py", line 317, in encrypt
       [2022/03/30 23:57:28.140]     encrypted_cmd = self._auto_encrypter.encrypt(database, encoded_cmd)
       [2022/03/30 23:57:28.140]   File "/data/mci/8efde6c0c17eec36897922444e4af3ee/src/venv-encryption/lib/python3.10/site-packages/pymongocrypt/auto_encrypter.py", line 44, in encrypt
       [2022/03/30 23:57:28.140]     return run_state_machine(ctx, self.callback)
       [2022/03/30 23:57:28.140]   File "/data/mci/8efde6c0c17eec36897922444e4af3ee/src/venv-encryption/lib/python3.10/site-packages/pymongocrypt/state_machine.py", line 139, in run_state_machine
       [2022/03/30 23:57:28.140]     result = callback.mark_command(ctx.database, mongocryptd_cmd)
       [2022/03/30 23:57:28.140]   File "/data/mci/8efde6c0c17eec36897922444e4af3ee/src/pymongo/encryption.py", line 182, in mark_command
       [2022/03/30 23:57:28.140]     res = self.mongocryptd_client[database].command(
       [2022/03/30 23:57:28.140]   File "/data/mci/8efde6c0c17eec36897922444e4af3ee/src/pymongo/database.py", line 725, in command
       [2022/03/30 23:57:28.140]     return self._command(
       [2022/03/30 23:57:28.140]   File "/data/mci/8efde6c0c17eec36897922444e4af3ee/src/pymongo/database.py", line 605, in _command
       [2022/03/30 23:57:28.140]     return sock_info.command(
       [2022/03/30 23:57:28.140]   File "/data/mci/8efde6c0c17eec36897922444e4af3ee/src/pymongo/pool.py", line 743, in command
       [2022/03/30 23:57:28.140]     return command(
       [2022/03/30 23:57:28.140]   File "/data/mci/8efde6c0c17eec36897922444e4af3ee/src/pymongo/network.py", line 160, in command
       [2022/03/30 23:57:28.140]     helpers._check_command_response(
       [2022/03/30 23:57:28.140]   File "/data/mci/8efde6c0c17eec36897922444e4af3ee/src/pymongo/helpers.py", line 180, in _check_command_response
       [2022/03/30 23:57:28.140]     raise OperationFailure(errmsg, code, response, max_wire_version)
       [2022/03/30 23:57:28.140] pymongo.errors.OperationFailure: jsonSchema is a required command field, full error: RawBSONDocument(b"j\x00\x00\x00\x01ok\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02errmsg\x00'\x00\x00\x00jsonSchema is a required command field\x00\x10code\x00\x81\xc7\x00\x00\x02codeName\x00\x0e\x00\x00\x00Location51073\x00\x00", codec_options=CodecOptions(document_class=<class 'bson.raw_bson.RawBSONDocument'>, tz_aware=False, uuid_representation=UuidRepresentation.UNSPECIFIED, unicode_decode_error_handler='strict', tzinfo=None, type_registry=TypeRegistry(type_codecs=[], fallback_encoder=None)))
       [2022/03/30 23:57:28.141] During handling of the above exception, another exception occurred:
       [2022/03/30 23:57:28.141] Traceback (most recent call last):
       [2022/03/30 23:57:28.141]   File "/data/mci/8efde6c0c17eec36897922444e4af3ee/src/test/test_encryption.py", line 328, in test_upsert_uuid_standard_encrypte
       [2022/03/30 23:57:28.141]     result = coll.bulk_write(
       [2022/03/30 23:57:28.141]   File "/data/mci/8efde6c0c17eec36897922444e4af3ee/src/pymongo/collection.py", line 514, in bulk_write
       [2022/03/30 23:57:28.141]     bulk_api_result = blk.execute(write_concern, session)
       [2022/03/30 23:57:28.141]   File "/data/mci/8efde6c0c17eec36897922444e4af3ee/src/pymongo/bulk.py", line 512, in execute
       [2022/03/30 23:57:28.141]     return self.execute_command(generator, write_concern, session)
       [2022/03/30 23:57:28.141]   File "/data/mci/8efde6c0c17eec36897922444e4af3ee/src/pymongo/bulk.py", line 390, in execute_command
       [2022/03/30 23:57:28.141]     client._retry_with_session(self.is_retryable, retryable_bulk, s, self)
       [2022/03/30 23:57:28.141]   File "/data/mci/8efde6c0c17eec36897922444e4af3ee/src/pymongo/mongo_client.py", line 1286, in _retry_with_session
       [2022/03/30 23:57:28.141]     return self._retry_internal(retryable, func, session, bulk)
       [2022/03/30 23:57:28.141]   File "/data/mci/8efde6c0c17eec36897922444e4af3ee/src/pymongo/mongo_client.py", line 1320, in _retry_internal
       [2022/03/30 23:57:28.141]     return func(session, sock_info, retryable)
       [2022/03/30 23:57:28.141]   File "/data/mci/8efde6c0c17eec36897922444e4af3ee/src/pymongo/bulk.py", line 384, in retryable_bulk
       [2022/03/30 23:57:28.141]     self._execute_command(
       [2022/03/30 23:57:28.141]   File "/data/mci/8efde6c0c17eec36897922444e4af3ee/src/pymongo/bulk.py", line 337, in _execute_command
       [2022/03/30 23:57:28.141]     result, to_send = bwc.execute(cmd, ops, client)
       [2022/03/30 23:57:28.141]   File "/data/mci/8efde6c0c17eec36897922444e4af3ee/src/pymongo/message.py", line 981, in execute
       [2022/03/30 23:57:28.141]     result = self.sock_info.command(
       [2022/03/30 23:57:28.141]   File "/data/mci/8efde6c0c17eec36897922444e4af3ee/src/pymongo/pool.py", line 770, in command
       [2022/03/30 23:57:28.141]     self._raise_connection_failure(error)
       [2022/03/30 23:57:28.141]   File "/data/mci/8efde6c0c17eec36897922444e4af3ee/src/pymongo/pool.py", line 743, in command
       [2022/03/30 23:57:28.141]     return command(
       [2022/03/30 23:57:28.141]   File "/data/mci/8efde6c0c17eec36897922444e4af3ee/src/pymongo/network.py", line 116, in command
       [2022/03/30 23:57:28.141]     spec = orig = client._encrypter.encrypt(dbname, spec, codec_options)
       [2022/03/30 23:57:28.141]   File "/data/mci/8efde6c0c17eec36897922444e4af3ee/src/pymongo/encryption.py", line 316, in encrypt
       [2022/03/30 23:57:28.141]     with _wrap_encryption_errors():
       [2022/03/30 23:57:28.141]   File "/opt/python/3.10/lib/python3.10/contextlib.py", line 153, in __exit__
       [2022/03/30 23:57:28.141]     self.gen.throw(typ, value, traceback)
       [2022/03/30 23:57:28.141]   File "/data/mci/8efde6c0c17eec36897922444e4af3ee/src/pymongo/encryption.py", line 75, in _wrap_encryption_errors
       [2022/03/30 23:57:28.141]     raise EncryptionError(exc)
       [2022/03/30 23:57:28.141] pymongo.errors.EncryptionError: jsonSchema is a required command field, full error: RawBSONDocument(b"j\x00\x00\x00\x01ok\x00\x00\x00\x00\x00\x00\x00\x00\x00\x02errmsg\x00'\x00\x00\x00jsonSchema is a required command field\x00\x10code\x00\x81\xc7\x00\x00\x02codeName\x00\x0e\x00\x00\x00Location51073\x00\x00", codec_options=CodecOptions(document_class=<class 'bson.raw_bson.RawBSONDocument'>, tz_aware=False, uuid_representation=UuidRepresentation.UNSPECIFIED, unicode_decode_error_handler='strict', tzinfo=None, type_registry=TypeRegistry(type_codecs=[], fallback_encoder=None)))
      

      https://spruce.mongodb.com/task/mongo_python_driver_tests_python_version_ubuntu18_test_encryption__platform~ubuntu_18.04_auth_ssl~noauth_nossl_python_version~3.10_encryption~encryption_test_5.0_replica_set_patch_c58950a8d4fd3d1238f08944d5d3e04bde6f1e46_6244ebe39ccd4e1afe5d40f2_22_03_30_23_46_44/logs?execution=0&sortBy=STATUS&sortDir=ASC

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

              Created:
              Updated:
              Resolved: