Details
-
Bug
-
Resolution: Duplicate
-
Major - P3
-
None
-
None
-
Server Tooling & Methods
-
ALL
-
26
Description
An exception can be raised in this code block, in powertest.py, which can erroneously cause a test failure:
elif operation == "kill_mongod":
|
# Unconditional kill of mongod.
|
ret, output = kill_mongod()
|
if ret:
|
LOGGER.error("kill_mongod failed %s", output)
|
return ret
|
# Ensure the mongod service is not in a running state.
|
mongod.stop(timeout=30)
|
status = mongod.status()
|
if status != "stopped":
|
LOGGER.error("Unable to stop the mongod service, in state '%s'", status)
|
ret = 1
|
The function mongod.stop will try to kill an non-existent process and throw an exception. It should handle this situation where the process has already been killed, possibly in a try/except block.
Attachments
Issue Links
- duplicates
-
SERVER-37125 Powercycle should ignore a process reference if it no longer exists
-
- Closed
-