[SERVER-13207] Unordered batch writes to a shard with version mismatch can trigger dassert at mongos Created: 14/Mar/14  Updated: 11/Jul/16  Resolved: 17/Mar/14

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 2.6.0-rc2

Type: Bug Priority: Major - P3
Reporter: Randolph Tan Assignee: Randolph Tan
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:
Linked BF Score: 0

 Description   

This happens because the shard will continue to process the remainder of the batch even if it encountered a version mismatch. This in turn will generate a response with multiple stale errors. And when the mongos processes the response it will trigger a dassert that checks that only 1 shard can have a stale error.



 Comments   
Comment by Githook User [ 17/Mar/14 ]

Author:

{u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-13207 Unordered batch writes to a shard with version mismatch can trigger dassert at mongos
(cherry picked from commit 337b9dd3f926323aae5025acd3a52b8c1c497b2d)
Branch: v2.6
https://github.com/mongodb/mongo/commit/1c177bb5d91bcd763e6a5f9c12656a05aa95a140

Comment by Githook User [ 17/Mar/14 ]

Author:

{u'username': u'renctan', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}

Message: SERVER-13207 Unordered batch writes to a shard with version mismatch can trigger dassert at mongos
Branch: master
https://github.com/mongodb/mongo/commit/337b9dd3f926323aae5025acd3a52b8c1c497b2d

Generated at Thu Feb 08 03:30:59 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.