[SERVER-17295] On Windows, service recovery actions don't work is mongoS fails to initialize Created: 15/Feb/15 Updated: 26/Sep/17 Resolved: 18/Jun/15 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Admin |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Alessandro Gherardi | Assignee: | Mark Benvenuto |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Operating System: | Windows | ||||||||||||||||||||||||
| Sprint: | Platform 4 06/05/15, Platform 5 06/26/16 | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Case: | (copied to CRM) | ||||||||||||||||||||||||
| Description |
|
Environment:
Scenario:
I believe that the issue is caused by method initService() in ntservice.cpp unconditionally calling reportStatus(SERVICE_STOPPED) when the service callback method returns. Here's a tentative fix: |
| Comments |
| Comment by Ramon Fernandez Marina [ 29/May/15 ] |
|
agherardi, unfortunately we're not able to accept this pull request as it is, as it's skipping a step in the service stop protocol: the patch skips the final state in the state machine and it has a side effect of convincing Windows we crashed. For more information please see the Remarks section in the documentation for SetServiceStatus at https://msdn.microsoft.com/en-us/library/windows/desktop/ms686241%28v=vs.85%29.aspx As you probably know this bug has been addressed in the 3.0 version of MongoDB, so if this is still an issue for you you may want to consider upgrading to the latest 3.0 version. Regards, |
| Comment by Alessandro Gherardi [ 17/Apr/15 ] |
|
Hello, Thank you, |
| Comment by Alessandro Gherardi [ 05/Mar/15 ] |
|
Hello - Any updates? Thank you, |