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

Write commands with 'ordered' option should not continue on StaleShardVersion errors

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Sharding, Write Ops
    • None
    • ALL

    Description

      If write commands are passed the 'ordered' option, when they are processed on the individual shards they will ignore individual document errors and continue execute until the batch is exhausted.

      However, if the error encountered is StaleShardVersion, there is no point in continuing, because it is guaranteed that none of the subsequent batch entries will succeed.

      We should make the shard stop executing the batch the moment the first StaleShardVersion is encountered.

      Attachments

        Activity

          People

            kaloian.manassiev@mongodb.com Kaloian Manassiev
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: