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

test_examples.TestTransactionExamples fails on 4.5-latest sharded clusters

    XMLWordPrintableJSON

Details

    • Task
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 3.11
    • Tests
    • None

    Description

       [2020/03/05 10:50:04.302] ERROR [0.320s]: test_transactions (test_examples.TestTransactionExamples)
       [2020/03/05 10:50:04.302] ----------------------------------------------------------------------
       [2020/03/05 10:50:04.302] Traceback (most recent call last):
       [2020/03/05 10:50:04.302]   File "/data/mci/dbb44182c4c9ced8db991d2d97b81a75/src/test/__init__.py", line 447, in wrap
       [2020/03/05 10:50:04.302]     return f(*args, **kwargs)
       [2020/03/05 10:50:04.302]   File "/data/mci/dbb44182c4c9ced8db991d2d97b81a75/src/test/test_examples.py", line 902, in test_transactions
       [2020/03/05 10:50:04.302]     update_employee_info(session)
       [2020/03/05 10:50:04.302]   File "/data/mci/dbb44182c4c9ced8db991d2d97b81a75/src/test/test_examples.py", line 877, in update_employee_info
       [2020/03/05 10:50:04.302]     session=session)
       [2020/03/05 10:50:04.302]   File "/data/mci/dbb44182c4c9ced8db991d2d97b81a75/src/pymongo/collection.py", line 1020, in update_one
       [2020/03/05 10:50:04.302]     hint=hint, session=session),
       [2020/03/05 10:50:04.302]   File "/data/mci/dbb44182c4c9ced8db991d2d97b81a75/src/pymongo/collection.py", line 866, in _update_retryable
       [2020/03/05 10:50:04.302]     _update, session)
       [2020/03/05 10:50:04.302]   File "/data/mci/dbb44182c4c9ced8db991d2d97b81a75/src/pymongo/mongo_client.py", line 1493, in _retryable_write
       [2020/03/05 10:50:04.302]     return self._retry_with_session(retryable, func, s, None)
       [2020/03/05 10:50:04.302]   File "/data/mci/dbb44182c4c9ced8db991d2d97b81a75/src/pymongo/mongo_client.py", line 1386, in _retry_with_session
       [2020/03/05 10:50:04.302]     return func(session, sock_info, retryable)
       [2020/03/05 10:50:04.302]   File "/data/mci/dbb44182c4c9ced8db991d2d97b81a75/src/pymongo/collection.py", line 862, in _update
       [2020/03/05 10:50:04.302]     retryable_write=retryable_write)
       [2020/03/05 10:50:04.302]   File "/data/mci/dbb44182c4c9ced8db991d2d97b81a75/src/pymongo/collection.py", line 832, in _update
       [2020/03/05 10:50:04.302]     retryable_write=retryable_write).copy()
       [2020/03/05 10:50:04.302]   File "/data/mci/dbb44182c4c9ced8db991d2d97b81a75/src/pymongo/pool.py", line 604, in command
       [2020/03/05 10:50:04.302]     user_fields=user_fields)
       [2020/03/05 10:50:04.302]   File "/data/mci/dbb44182c4c9ced8db991d2d97b81a75/src/pymongo/network.py", line 152, in command
       [2020/03/05 10:50:04.302]     parse_write_concern_error=parse_write_concern_error)
       [2020/03/05 10:50:04.302]   File "/data/mci/dbb44182c4c9ced8db991d2d97b81a75/src/pymongo/helpers.py", line 161, in _check_command_response
       [2020/03/05 10:50:04.302]     raise OperationFailure(msg % errmsg, code, response)
       [2020/03/05 10:50:04.302] OperationFailure: Transaction 58ec29bc-f257-43ce-81ed-2db10a7da770:3 was aborted on statement 0 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 hr.employees is not currently available for filtering and needs to be recovered from the config server
      

      Server version: v4.5.0-32-gfceaea1

      Link: https://evergreen.mongodb.com/task/mongo_python_driver_tests_python_version_rhel62_test_ssl__platform~rhel62_auth~auth_ssl~ssl_python_version~2.7_coverage~coverage_test_latest_sharded_cluster_patch_2157dc58ea07e033760bcc81fee386f9f879edd2_5e614638c9ec44146c784ecd_20_03_05_18_35_16

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: