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

Add restart test for retryable internal transactions for findAndModify

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

      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@mongodb.com Cheahuychou Mao
            Reporter:
            cheahuychou.mao@mongodb.com Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: