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

Transaction spec test for bulk write fails on latest (4.5) sharded cluster

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 3.11
    • Affects Version/s: None
    • Component/s: Tests
    • None

      Example: https://evergreen.mongodb.com/task/mongo_python_driver_tests_python_version_rhel62_test_ssl__platform~rhel62_auth~noauth_ssl~nossl_python_version~3.6_coverage~coverage_test_latest_sharded_cluster_d42c5105cd3fb321a1e059c4fec23314d17bcf93_20_04_06_20_40_41:

      ERROR: Transaction 8233a7f9-23f6-412d-bc76-ce2eacc4c2c8:1 was aborted on statement 3 due to: an error from cluster data placement change :: caused by :: Encountered error from localhost:27217 during a transaction :: caused by :: sharding status of collection transaction-tests.test is not currently available for filtering and needs to be recovered from the config server (OperationFailure)
       Traceback (most recent call last):
         File "/data/mci/6157faf22d2f2dddffa3bb919fb70f66/src/test/__init__.py", line 447, in wrap
           return f(*args, **kwargs)
         File "/data/mci/6157faf22d2f2dddffa3bb919fb70f66/src/test/__init__.py", line 447, in wrap
           return f(*args, **kwargs)
         File "/data/mci/6157faf22d2f2dddffa3bb919fb70f66/src/test/__init__.py", line 447, in wrap
           return f(*args, **kwargs)
         File "/data/mci/6157faf22d2f2dddffa3bb919fb70f66/src/test/test_transactions.py", line 407, in run_scenario
           self.run_scenario(scenario_def, test)
         File "/data/mci/6157faf22d2f2dddffa3bb919fb70f66/src/test/utils_spec_runner.py", line 576, in run_scenario
           self.run_test_ops(sessions, collection, test)
         File "/data/mci/6157faf22d2f2dddffa3bb919fb70f66/src/test/utils_spec_runner.py", line 489, in run_test_ops
           self.run_operations(sessions, collection, test['operations'])
         File "/data/mci/6157faf22d2f2dddffa3bb919fb70f66/src/test/utils_spec_runner.py", line 395, in run_operations
           result = self.run_operation(sessions, collection, op.copy())
         File "/data/mci/6157faf22d2f2dddffa3bb919fb70f66/src/test/utils_spec_runner.py", line 342, in run_operation
           result = cmd(**dict(arguments))
         File "/data/mci/6157faf22d2f2dddffa3bb919fb70f66/src/pymongo/collection.py", line 501, in bulk_write
           bulk_api_result = blk.execute(write_concern, session)
         File "/data/mci/6157faf22d2f2dddffa3bb919fb70f66/src/pymongo/bulk.py", line 528, in execute
           return self.execute_command(generator, write_concern, session)
         File "/data/mci/6157faf22d2f2dddffa3bb919fb70f66/src/pymongo/bulk.py", line 360, in execute_command
           self.is_retryable, retryable_bulk, s, self)
         File "/data/mci/6157faf22d2f2dddffa3bb919fb70f66/src/pymongo/mongo_client.py", line 1393, in _retry_with_session
           return func(session, sock_info, retryable)
         File "/data/mci/6157faf22d2f2dddffa3bb919fb70f66/src/pymongo/bulk.py", line 355, in retryable_bulk
           retryable, full_result)
         File "/data/mci/6157faf22d2f2dddffa3bb919fb70f66/src/pymongo/bulk.py", line 309, in _execute_command
           result, to_send = bwc.execute(ops, client)
         File "/data/mci/6157faf22d2f2dddffa3bb919fb70f66/src/pymongo/message.py", line 909, in execute
           result = self.write_command(request_id, msg, to_send)
         File "/data/mci/6157faf22d2f2dddffa3bb919fb70f66/src/pymongo/message.py", line 998, in write_command
           reply = self.sock_info.write_command(request_id, msg)
         File "/data/mci/6157faf22d2f2dddffa3bb919fb70f66/src/pymongo/pool.py", line 681, in write_command
           helpers._check_command_response(result)
         File "/data/mci/6157faf22d2f2dddffa3bb919fb70f66/src/pymongo/helpers.py", line 161, in _check_command_response
           raise OperationFailure(msg % errmsg, code, response)
       pymongo.errors.OperationFailure: Transaction 8233a7f9-23f6-412d-bc76-ce2eacc4c2c8:1 was aborted on statement 3 due to: an error from cluster data placement change :: caused by :: Encountered error from localhost:27217 during a transaction :: caused by :: sharding status of collection transaction-tests.test is not currently available for filtering and needs to be recovered from the config server
      

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

              Created:
              Updated:
              Resolved: