[SERVER-15219] race in migration commit can cause it to timeout Created: 11/Sep/14  Updated: 02/Oct/14  Resolved: 11/Sep/14

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: 2.7.6
Fix Version/s: 2.7.7

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:
Related
Operating System: ALL
Participants:
Linked BF Score: 0

 Description   

Description of race:

1. moveChunk on collection C0 from shard S1 to S0.
2. S1 sends S0 recvChunkCommitStart
3. S0 migrate thread finishes and set active to false.
4. moveChunk on collection C1 from shard S2 to S0.
5. startCommit from #2 proceeds on the loop for active to become false (https://github.com/mongodb/mongo/blob/r2.7.6/src/mongo/s/d_migrate.cpp#L2248)
6. startCommit times out on the condition variable as long as moveChunk in #4 takes more than 30 secs.



 Comments   
Comment by Githook User [ 11/Sep/14 ]

Author:

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

Message: SERVER-15219 race in migration commit can cause it to timeout
Branch: master
https://github.com/mongodb/mongo/commit/c082c215f671a7b8475d8407ed8f3c37e176e7ad

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