[SERVER-29380] Potential race in exit code used when shutting down server Created: 25/May/17 Updated: 30/Oct/23 Resolved: 09/Jun/17 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | 3.5.9 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Max Hirschhorn | Assignee: | Max Hirschhorn |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Backwards Compatibility: | Fully Compatible |
| Operating System: | ALL |
| Sprint: | TIG 2017-06-19 |
| Participants: |
| Description |
|
It is possible that after the shutdown tasks complete for a thread that didn't call shutdown() first to exit with a different exit code than the thread that called shutdown() first. The logAndQuickExit(code) call when the shutdown tasks are already in progress should be changed to logAndQuickExit(shutdownExitCode.get()). |
| Comments |
| Comment by Githook User [ 09/Jun/17 ] |
|
Author: {u'username': u'visemet', u'name': u'Max Hirschhorn', u'email': u'max.hirschhorn@mongodb.com'}Message: |