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

Ensure findAndModify cmd executes before range deletion in write_without_shard_key_single_shard_data_placement_change.js

    • 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

      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@mongodb.com Nandini Bhartiya
            Reporter:
            nandini.bhartiya@mongodb.com Nandini Bhartiya
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: