[SERVER-2629] Stopping balancer doesn't work Created: 26/Feb/11 Updated: 16/Nov/21 Resolved: 26/Feb/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin |
| Affects Version/s: | 1.6.5 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Sergei Tulentsev | Assignee: | Unassigned |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Participants: |
| Description |
|
Balancer acquires lock after it was stopped. See command log. > new Date() , { $set : { stopped: true}}, true) ... some time later ... > db.locks.find() { "_id" : "balancer", "process" : "cs395:1298591070:1804289383", "state" : 1, "ts" : ObjectId("4d684f203edb47525bb2e83c"), "when" : "Sat Feb 26 2011 03:53:52 GMT+0300 (MSK)", "who" : "cs395:1298591070:1804289383:Balancer:846930886", "why" : "doing balance round" }{ "_id" : "pravdorub_production.answers", "process" : "cs2592:1295720613:2071809637", "state" : 0, "ts" : ObjectId("4d587643a02cc5c2bbd7744b"), "when" : "Mon Feb 14 2011 03:24:35 GMT+0300 (MSK)", "who" : "cs2592:1295720613:2071809637:conn470:1907961462", "why" : "migrate- { uiq: 16559695 }" } " } " } |
| Comments |
| Comment by Eliot Horowitz (Inactive) [ 26/Feb/11 ] |
|
It gets the lock before checking. |