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

ClientBulkWrite failures on Serverless

    • Type: Icon: Build Failure Build Failure
    • Resolution: Fixed
    • Priority: Icon: Unknown Unknown
    • 4.9
    • Affects Version/s: None
    • Component/s: None
    • None
    • Python Drivers
    • Not Needed
    • Hide

      1. What would you like to communicate to the user about this feature?
      2. Would you like the user to see examples of the syntax and/or executable code and its output?
      3. Which versions of the driver/connector does this apply to?

      Show
      1. What would you like to communicate to the user about this feature? 2. Would you like the user to see examples of the syntax and/or executable code and its output? 3. Which versions of the driver/connector does this apply to?

      Name of Failure:

      OperationFailure("collation not allowed in this atlas tier...
      OperationFailure('(Unauthorized) not authorized on admin to execute command { bulkWrite: 1...

      Link to task:

      https://spruce.mongodb.com/task/mongo_python_driver_serverless__platform~rhel8_auth_ssl~auth_ssl_python_version~3.8_serverless~enabled_test_serverless_559d8b1ea1a3e93a1d96562b66d9e6ecd05028ff_24_08_16_22_55_57/logs?execution=4

      Context of when and why the failure occurred:

      PYTHON-3233

      Stack trace:

      pymongo.errors.ClientBulkWriteException: batch op errors occurred, full error: {'anySuccessful': False, 'error': OperationFailure('(Unauthorized) not authorized on admin to execute command { bulkWrite: 1, errorsOnly: true, ordered: true, lsid: { id: {4 [65 238 90 7 230 128 72 65 167 52 224 55 46 131 232 135]} }, txnNumber: 1.000000, $db: "admin" }, full error: {\'ok\': 0, \'errmsg\': \'(Unauthorized) not authorized on admin to execute command { bulkWrite: 1, errorsOnly: true, ordered: true, lsid: { id: {4 [65 238 90 7 230 128 72 65 167 52 224 55 46 131 232 135]} }, txnNumber: 1.000000, $db: "admin" }\', \'code\': 8000, \'codeName\': \'AtlasError\'}'), 'writeErrors': [], 'writeConcernErrors': [], 'nInserted': 0, 'nUpserted': 0, 'nMatched': 0, 'nModified': 0, 'nDeleted': 0, 'insertResults': {}, 'updateResults': {}, 'deleteResults': {}}
       [2024/08/19 10:50:53.471] pymongo/_client_bulk_shared.py:77: ClientBulkWriteException
      

            Assignee:
            shruti.sridhar@mongodb.com Shruti Sridhar (Inactive)
            Reporter:
            steve.silvester@mongodb.com Steve Silvester
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: