Ensure findAndModify cmd executes before range deletion in write_without_shard_key_single_shard_data_placement_change.js

XMLWordPrintableJSON

    • Cluster Scalability
    • Fully Compatible
    • ALL
    • v8.0, v7.3
    • Hide

      The error can be reproduced by adding a sleep(5000) here.

       

      Show
      The error can be reproduced by adding a sleep(5000) here.  
    • 200
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The write_without_shard_key_single_shard_data_placement_change.js fails since it [asserts with a WriteConflict instead of a MigrationConflict (which is what the test expects).
      This is because in cases where the range deletion starts on the donor before the findAndModify command, the delete query conflicts with the findAndModify cmd, which in turn uasserts with the WriteConflict error.
      The test must be fixed such that the findAndModify command executes before range deletion to ensure we are testing for the MigrationConflict error correctly.

              Assignee:
              Nandini Bhartiya
              Reporter:
              Nandini Bhartiya
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: