Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-93140

Make timeseries_retry_delete_and_update_multi_shard.js more resilient to actual aborted transactions

    • Type: Icon: Task Task
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Storage Execution
    • Fully Compatible
    • Execution Team 2024-08-05
    • 0

      This test tests timeseries retryable writes. It simulates retryable writes by issuing commands twice, both with the same lsid and txnNumber, and tests that the retriedStatementsCount and retriedCommands counts from the server are what we expect. 

      However, in the rare care of one of the transactions actually being aborted and retried, the retriedStatementsCount/retriedCommandsCount will be one more than expected. This isn't an issue with the server code, since the statements are retried successfully, but the test doesn't account for this by checking for strict equality for the counts. This ticket would add a bit more leeway and make the test more resilient in the face of actually encountering a retried transaction.

            Assignee:
            damian.wasilewicz@mongodb.com Damian Wasilewicz
            Reporter:
            damian.wasilewicz@mongodb.com Damian Wasilewicz
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: