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.