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

Change assertions in update_shard_key_conflicting_writes.js to be assert.soon

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 4.7.0
    • Component/s: Sharding
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Sharding 2020-06-01
    • Linked BF Score:
      16

      Description

      After SERVER-37364 a transaction coordinator will return the commit decision as soon as the decision is persisted and majority committed. There are a number of cases in this test where we run a transaction in a parallel shell, and then make an assertion about the writes done in that transaction outside of the shell. Because this commit made it such that we may not see changes from a transaction without using a session with causal consistency for a bit, we should change any assertions to be an assert.soon. In particular this assertion should be changed (and we should double check for others!).

        Attachments

          Activity

            People

            Assignee:
            cheahuychou.mao Cheahuychou Mao
            Reporter:
            janna.golden Janna Golden
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: