[SERVER-5186] When mongod --shutdown is issued, an incorrect message is logged Created: 02/Mar/12 Updated: 11/Jul/16 Resolved: 05/Mar/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Logging |
| Affects Version/s: | 2.0.3, 2.1.0 |
| Fix Version/s: | 2.1.1 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Michael A. Fiedler | Assignee: | Mathias Stearn |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Environment: |
mongod on linux |
||
| Issue Links: |
|
||||||||||||||||
| Operating System: | Linux | ||||||||||||||||
| Participants: | |||||||||||||||||
| Description |
|
When using the --shutdown flag, mongod produces a log file like this:
whereas when using another method, such as kill or db. shutdownServer() does not produce this:
The SERVER RESTARTED message is incorrect. |
| Comments |
| Comment by auto [ 19/Apr/12 ] |
|
Author: {u'login': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}Message: Ignore --fork and --logpath when using --shutdown |
| Comment by Eliot Horowitz (Inactive) [ 19/Apr/12 ] |
|
its a dupe |
| Comment by auto [ 05/Mar/12 ] |
|
Author: {u'login': u'RedBeard0531', u'name': u'Mathias Stearn', u'email': u'mathias@10gen.com'}Message: Ignore --fork and --logpath when using --shutdown |
| Comment by Mathias Stearn [ 05/Mar/12 ] |
|
Actually it looks like fork and logpath are handled in CmdLine::store() so for now it is much easier to blacklist flags that should be ignored with --shutdown. A better solution requires |
| Comment by Mathias Stearn [ 05/Mar/12 ] |
|
I'm thinking that when using --shutdown, we should ignore all options not directly related to the task of shutting down This includes things like --logpath and --fork, but probably everything other than dbpath should also be ignored. |