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

Transaction tests that use readConcern "snapshot" are failing with snapshot errors

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

      For example:

       [2019/03/28 12:03:13.278] ERROR [0.046s]: test_transactions_transaction-options_defaultTransactionOptions_override_client_options (test_transactions.TestTransactions)
       [2019/03/28 12:03:13.278] ----------------------------------------------------------------------
       [2019/03/28 12:03:13.278] Traceback (most recent call last):
       [2019/03/28 12:03:13.278]   File "/data/mci/d8892024d3a11d251a760e386d482e5d/src/test/__init__.py", line 410, in wrap
       [2019/03/28 12:03:13.278]     return f(*args, **kwargs)
       [2019/03/28 12:03:13.278]   File "/data/mci/d8892024d3a11d251a760e386d482e5d/src/test/__init__.py", line 410, in wrap
       [2019/03/28 12:03:13.278]     return f(*args, **kwargs)
       [2019/03/28 12:03:13.278] writing manifest file 'pymongo.egg-info/SOURCES.txt'
       [2019/03/28 12:03:13.278] running build_ext
       [2019/03/28 12:03:13.278] Skipping test 'Valid options specific to single-threaded drivers are parsed correctly'
       [2019/03/28 12:03:13.278]   File "/data/mci/d8892024d3a11d251a760e386d482e5d/src/test/__init__.py", line 410, in wrap
       [2019/03/28 12:03:13.278]     return f(*args, **kwargs)
       [2019/03/28 12:03:13.278]   File "/data/mci/d8892024d3a11d251a760e386d482e5d/src/test/test_transactions.py", line 764, in run_scenario
       [2019/03/28 12:03:13.278]     self.run_operations(sessions, collection, test['operations'])
       [2019/03/28 12:03:13.278]   File "/data/mci/d8892024d3a11d251a760e386d482e5d/src/test/test_transactions.py", line 209, in run_operations
       [2019/03/28 12:03:13.278]     result = self.run_operation(sessions, collection, op.copy())
       [2019/03/28 12:03:13.278]   File "/data/mci/d8892024d3a11d251a760e386d482e5d/src/test/test_transactions.py", line 297, in run_operation
       [2019/03/28 12:03:13.278]     result = cmd(**dict(arguments))
       [2019/03/28 12:03:13.278]   File "/data/mci/d8892024d3a11d251a760e386d482e5d/src/pymongo/collection.py", line 694, in insert_one
       [2019/03/28 12:03:13.278]     session=session),
       [2019/03/28 12:03:13.278]   File "/data/mci/d8892024d3a11d251a760e386d482e5d/src/pymongo/collection.py", line 608, in _insert
       [2019/03/28 12:03:13.278] Skipping test 'Invalid serverSelectionTryOnce causes a warning'
       [2019/03/28 12:03:13.278]     bypass_doc_val, session)
       [2019/03/28 12:03:13.278]   File "/data/mci/d8892024d3a11d251a760e386d482e5d/src/pymongo/collection.py", line 596, in _insert_one
       [2019/03/28 12:03:13.278]     acknowledged, _insert_command, session)
       [2019/03/28 12:03:13.278]   File "/data/mci/d8892024d3a11d251a760e386d482e5d/src/pymongo/mongo_client.py", line 1342, in _retryable_write
       [2019/03/28 12:03:13.278]     return self._retry_with_session(retryable, func, s, None)
       [2019/03/28 12:03:13.278]   File "/data/mci/d8892024d3a11d251a760e386d482e5d/src/pymongo/mongo_client.py", line 1295, in _retry_with_session
       [2019/03/28 12:03:13.278]     return func(session, sock_info, retryable)
       [2019/03/28 12:03:13.278]   File "/data/mci/d8892024d3a11d251a760e386d482e5d/src/pymongo/collection.py", line 591, in _insert_command
       [2019/03/28 12:03:13.278]     retryable_write=retryable_write)
       [2019/03/28 12:03:13.278]   File "/data/mci/d8892024d3a11d251a760e386d482e5d/src/pymongo/pool.py", line 579, in command
       [2019/03/28 12:03:13.278]     unacknowledged=unacknowledged)
       [2019/03/28 12:03:13.278]   File "/data/mci/d8892024d3a11d251a760e386d482e5d/src/pymongo/network.py", line 150, in command
       [2019/03/28 12:03:13.278]     parse_write_concern_error=parse_write_concern_error)
       [2019/03/28 12:03:13.278]   File "/data/mci/d8892024d3a11d251a760e386d482e5d/src/pymongo/helpers.py", line 155, in _check_command_response
       [2019/03/28 12:03:13.278]     raise OperationFailure(msg % errmsg, code, response)
       [2019/03/28 12:03:13.278] pymongo.errors.OperationFailure: Transaction 4100415a-2791-450b-8998-bce3117f3fb9:1 was aborted on statement 0 due to: a non-retryable snapshot error :: caused by :: Encountered error from localhost:27217 during a transaction :: caused by :: Read timestamp Timestamp(1553799789, 74) is older than the oldest available timestamp.
      

      https://evergreen.mongodb.com/task/mongo_python_driver_tests_python_version_rhel62_test_ssl__auth~noauth_ssl~nossl_python_version~3.6_coverage~coverage_test_latest_sharded_cluster_5950abf323795b2c7ac8d2383ba32e74bf74f437_19_03_28_18_51_28

            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: