[SERVER-20592] Split chunk doesn't retry if the chunk boundaries don't match what mongos expected Created: 23/Sep/15  Updated: 25/Jan/17  Resolved: 28/Sep/15

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 3.1.8
Fix Version/s: 3.1.9

Type: Bug Priority: Major - P3
Reporter: Spencer Brody (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
is related to SERVER-20676 Move chunk doesn't retry if the chunk... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding A (10/09/15)
Participants:

 Description   

If a chunk was split by one mongos, then another mongos tries to split the same mongos, the second mongos may load the old chunk boundaries. When the mongod gets the split command, it won't find a chunk with those exact boundaries. At this point, the mongos should refresh and retry, as it will now have the optime from the shard needed to view the most recent chunk boundary, but currently it does not, it just fails



 Comments   
Comment by Githook User [ 28/Sep/15 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-20592 Retry split chunk if it fails due to stale chunk boundaries
Branch: master
https://github.com/mongodb/mongo/commit/6d2fa05f1e54acbbb684a6a7616e283c9651d644

Comment by Githook User [ 24/Sep/15 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-20592 Disable csrs_upgrade.js test due to bug with moveChunk
Branch: master
https://github.com/mongodb/mongo/commit/543f81a81d31098e464238398f5a20d1d2453b25

Comment by Spencer Brody (Inactive) [ 23/Sep/15 ]

Proposed solution is to make the mongod return the stale shard version error code in these cases, which will trigger retry logic on the mongos.

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