[SERVER-9253] `rpm/init.d-mongod stop` unnecessarily sleeps for 5mn Created: 05/Apr/13 Updated: 09/Sep/14 Resolved: 20/Aug/14 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Packaging |
| Affects Version/s: | 2.4.1 |
| Fix Version/s: | 2.7.6 |
| Type: | Bug | Priority: | Minor - P4 |
| Reporter: | Alexis Midon | Assignee: | Benety Goh |
| Resolution: | Done | Votes: | 4 |
| Labels: | community-team, pull-request | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||
| Description |
|
`/etc/init.d/mongod stop` uses killproc with a 5mn delay between TERM and KILL. This ticket is to re-implement the same 5mn delay but with a busy-wait loop that would return as early as possible. |
| Comments |
| Comment by Githook User [ 20/Aug/14 ] | |||||||||||||||||||||||||||||||
|
Author: {u'username': u'benety', u'name': u'Benety Goh', u'email': u'benety@mongodb.com'}Message: | |||||||||||||||||||||||||||||||
| Comment by Githook User [ 20/Aug/14 ] | |||||||||||||||||||||||||||||||
|
Author: {u'username': u'alexism', u'name': u'Alexis Midon', u'email': u'alexismidon@gmail.com'}Message: Closes #411 Signed-off-by: Benety Goh <benety@mongodb.com> | |||||||||||||||||||||||||||||||
| Comment by Benety Goh [ 15/Aug/14 ] | |||||||||||||||||||||||||||||||
|
init.d/mongod relies on the killproc() function in /etc/init.d/functions to stop the mongod process. Commit 9369bf1568b73061fe29670b4faae80c6507d56f might be relevant to this SERVER ticket: Description: Make killproc more granular when delay is passed. (#428029, <xjakub@fi.muni.cz>) | |||||||||||||||||||||||||||||||
| Comment by Web Systems [ 31/Jan/14 ] | |||||||||||||||||||||||||||||||
|
Hi, | |||||||||||||||||||||||||||||||
| Comment by Alexis Midon [ 23/May/13 ] | |||||||||||||||||||||||||||||||
|
Here are some details on the issue. Sorry I should have shared that earlier.
| |||||||||||||||||||||||||||||||
| Comment by Ernie Hershey [ 23/May/13 ] | |||||||||||||||||||||||||||||||
|
Sure. I commented on the pull request. | |||||||||||||||||||||||||||||||
| Comment by Matt Kangas [ 23/May/13 ] | |||||||||||||||||||||||||||||||
|
Ernie, can you take a look at this? |