[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: SERVER-29380 Fix potential race in exit code during server shutdown.
Branch: master
https://github.com/mongodb/mongo/commit/ff412300b3688dad4938bb381ec3aba12a81024b

Generated at Thu Feb 08 04:20:42 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.