[SERVER-17164] mongod sometimes crashes when restarting to disable auth Created: 03/Feb/15 Updated: 18/Sep/15 Resolved: 05/Feb/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | 3.0.0-rc6, 3.0.0-rc7 |
| Fix Version/s: | 3.0.0-rc8 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Timothy Olsen (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: |
|
||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||
| Operating System: | ALL | ||||||||
| Steps To Reproduce: |
If you have trouble reproducing the crash, I can help you setup the automation test suite where this crash sometimes occurs. |
||||||||
| Participants: | |||||||||
| Description |
|
Sometimes a 3.0.0-rc7 mongod that is part of a replica set which is part of a sharded cluster will crash when it is restarted in order to disable auth. I discovered this while running Automation's test suite. Although the mongod that crashes is part of a replica set, the crash does not appear to happen when the replica set is not part of a sharded cluster. The crash also happens with 3.0.0-rc6. The test that triggers it sets up a sharded cluster with auth enabled. Users are added. Then all processes are restarted with auth disabled. There is a partial order to the stopping and starting. Replica set members can stop and start immediately. Mongoses can stop immediately and can each start only after all other mongoses and config servers are either stopped or have restarted. Config servers can stop only after all mongoses have stopped. Config servers can each start after all other mongoses and config servers are either stopped or have restarted. Here is the config file of a replica set member before it was restarted (with auth on):
Here is the new config file (with auth off) for the same replica set member:
And here is the log after the process attempts to start with the new config file:
|
| Comments |
| Comment by Githook User [ 04/Feb/15 ] |
|
Author: {u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}Message: (cherry picked from commit 30c0fd907f5279786c0eb6958bb61039697c5c29) |
| Comment by Githook User [ 04/Feb/15 ] |
|
Author: {u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}Message: |