[SERVER-26013] Add means to the DistLockManager to restore locks during draining mode Created: 07/Sep/16 Updated: 19/Nov/16 Resolved: 08/Sep/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 3.3.14 |
| Type: | Task | Priority: | Major - P3 |
| Reporter: | Kaloian Manassiev | Assignee: | Kaloian Manassiev |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Sprint: | Sharding 2016-09-19 | ||||||||
| Participants: | |||||||||
| Description |
|
As part of the balancer state recovery after stepdown we need to be able to re-acquire the collection distributed locks held by the previous balancer session. This must be done while replication is still in draining mode in order to avoid a race condition where a mongos steals them before the recovery manages to run. Since majority writes are not allowed while in draining mode, this lock re-acquisition must be done with local write concern. This ticket is to add a method on the DistLockManager, which would allow such mode of lock acquisition. Furthermore, because the only owner of the locks being restored can be the balancer, which cleans all its locks before recovery begins, this method does not need to do any lock overtaking. |
| Comments |
| Comment by Githook User [ 15/Sep/16 ] |
|
Author: {u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}Message: In addition, restores the default values for merge and split chunk, which |
| Comment by Githook User [ 15/Sep/16 ] |
|
Author: {u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}Message: |
| Comment by Githook User [ 08/Sep/16 ] |
|
Author: {u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}Message: |
| Comment by Githook User [ 08/Sep/16 ] |
|
Author: {u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}Message: |
| Comment by Githook User [ 08/Sep/16 ] |
|
Author: {u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}Message: |