Add restart test for retryable internal transactions for findAndModify

XMLWordPrintableJSON

    • Type: Task
    • Resolution: Fixed
    • Priority: Major - P3
    • 5.3.0
    • Affects Version/s: None
    • Component/s: None
    • None
    • Fully Compatible
    • Sharding 2022-01-24, Sharding 2022-02-07
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Due to the issue investigated in SERVER-61409, retryable findAndModify both inside and outside transactions are not expected to be retryable after restart since the secondary from before restart can end up with invalid config.image_collections entries. This ticket is to add test coverage for this for findAndModify in retryable internal transactions. That is, if after restart:

      • If a secondary has a config.image_collection entry with "invalidatedReason":"minvalid suggests inconsistent snapshot" and if
        • The secondary steps up, verify that retries fail with InCompleteTransactionHistory
        • The secondary does not step up verify that the shard fails the dbhash check
      • If no secondaries have an invalid config.image_collection entry, verify the retries succeed.

              Assignee:
              Cheahuychou Mao
              Reporter:
              Cheahuychou Mao
              Votes:
              0 Vote for this issue
              Watchers:
              6 Start watching this issue

                Created:
                Updated:
                Resolved: