[SERVER-41321] Stopping 'mongod-powertest' service returns an error on Windows Created: 25/May/19  Updated: 29/Oct/23  Resolved: 27/May/19

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 4.1.12

Type: Bug Priority: Major - P3
Reporter: Max Hirschhorn Assignee: Max Hirschhorn
Resolution: Fixed Votes: 0
Labels: tig-powercycle
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Depends
Related
is related to SERVER-41109 SSH_CONNECTION_ERRORS need to be byte... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: STM 2019-06-03
Participants:
Linked BF Score: 50
Story Points: 1

 Description   

[2019/05/17 14:58:26.546] 2019-05-17 14:58:25,787 INFO System was last booted 2019-05-17 14:46:34.000000, up 711 seconds
[2019/05/17 14:58:26.546] 2019-05-17 14:58:25,787 INFO Operations to perform ['kill_mongod']
[2019/05/17 14:58:26.546] Traceback (most recent call last):
[2019/05/17 14:58:26.546]   File "powertest.py", line 890, in stop
[2019/05/17 14:58:26.546]     win32serviceutil.StopService(serviceName=self.name)
[2019/05/17 14:58:26.546]   File "C:\cygwin\home\Administrator\venv_powercycle\lib\site-packages\win32\lib\win32serviceutil.py", line 409, in StopService
[2019/05/17 14:58:26.546]     return ControlService(serviceName, win32service.SERVICE_CONTROL_STOP, machine)
[2019/05/17 14:58:26.546]   File "C:\cygwin\home\Administrator\venv_powercycle\lib\site-packages\win32\lib\win32serviceutil.py", line 320, in ControlService
[2019/05/17 14:58:26.546]     status = win32service.ControlService(hs, code)
[2019/05/17 14:58:26.546] pywintypes.error: (109, 'ControlService', 'The pipe has been ended.')
[2019/05/17 14:58:26.546] During handling of the above exception, another exception occurred:
[2019/05/17 14:58:26.546] Traceback (most recent call last):
[2019/05/17 14:58:26.546]   File "powertest.py", line 2548, in <module>
[2019/05/17 14:58:26.546]     main()
[2019/05/17 14:58:26.546]   File "powertest.py", line 2128, in main
[2019/05/17 14:58:26.546]     ret = remote_handler(options, args)
[2019/05/17 14:58:26.546]   File "powertest.py", line 1202, in remote_handler
[2019/05/17 14:58:26.546]     mongod.stop(timeout=30)
[2019/05/17 14:58:26.546]   File "powertest.py", line 1080, in stop
[2019/05/17 14:58:26.546]     return self.service.stop(timeout)
[2019/05/17 14:58:26.546]   File "powertest.py", line 904, in stop
[2019/05/17 14:58:26.546]     output = "{}: {}".format(err[1], err[2])
[2019/05/17 14:58:26.546] TypeError: 'error' object does not support indexing

https://evergreen.mongodb.com/task/mongodb_mongo_master_windows_64_2k8_ssl_powercycle_kill_mongod_39413ef58dd1f667728b67c86e1bf09146952242_19_05_16_20_32_34/0



 Comments   
Comment by Githook User [ 27/May/19 ]

Author:

{'email': 'max.hirschhorn@mongodb.com', 'name': 'Max Hirschhorn', 'username': 'visemet'}

Message: SERVER-41321 Ignore ERROR_BROKEN_PIPE from StopService() in powercycle.
Branch: master
https://github.com/mongodb/mongo/commit/24982c2fc634dcb5d033087f59614005f080f288

Comment by Max Hirschhorn [ 25/May/19 ]

The ERROR_BROKEN_PIPE error code from calling win32serviceutil.StopService() is likely caused by how the mongod process has already been killed via taskkill prior to stopping the "mongod-powertest" service.

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