[SERVER-16106] Event Viewer (system) error when pressing power button on machine Created: 12/Nov/14 Updated: 31/Jul/15 Resolved: 09/Jan/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin |
| Affects Version/s: | 2.6.3 |
| Fix Version/s: | 2.8.0-rc5 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Paul Knopf | Assignee: | Mark Benvenuto |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
| Backwards Compatibility: | Fully Compatible |
| Operating System: | Windows |
| Participants: |
| Description |
|
I got an error in the event log every time I shutdown the machine.
|
| Comments |
| Comment by Githook User [ 09/Jan/15 ] | |||||||||||||
|
Author: {u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}Message: | |||||||||||||
| Comment by Githook User [ 09/Jan/15 ] | |||||||||||||
|
Author: {u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}Message: | |||||||||||||
| Comment by Githook User [ 09/Jan/15 ] | |||||||||||||
|
Author: {u'username': u'markbenvenuto', u'name': u'Mark Benvenuto', u'email': u'mark.benvenuto@mongodb.com'}Message: | |||||||||||||
| Comment by Mark Benvenuto [ 12/Nov/14 ] | |||||||||||||
|
Paul, your description of the problem is accurate. MongoD registers a Control-C handler via SetConsoleCtrlHandler. This same callback function also delivers us the Shutdown notification which causes us to shutdown even though we should wait for the SCM to signal us to stop. | |||||||||||||
| Comment by Paul Knopf [ 12/Nov/14 ] | |||||||||||||
|
No issues with the database. I am wondering if it has to do with mongod.exe listening to a shutdown command from the operating system, instead of from the service host directly. Maybe mongod.exe is shutting down correctly on a CTRL_SHUTDOWN_EVENT, but it shutdown before the service host was going to tell it. Therefore, the service host thinks mongod.exe shutdown "unexpectedly". Just a thought. | |||||||||||||
| Comment by Ramon Fernandez Marina [ 12/Nov/14 ] | |||||||||||||
|
Microsoft documentation indicates that this type of Event ID is caused by a service not producing a success return value on stop. However the the logs show that mongod shut down correctly:
Is your MongoDB instance experiencing any problems? Does the issue reproduce if you stop the mongod service manually? What about if you shut down via software? |