Skip to content

Commit 9c2cc2d

Browse files
committed
Kill processes of non-started tarantool servers
It was found that processes of non-started tarantool servers are not killed by test-run and leave to hang. This situation can be reproduced by creating the main server, then creating a replica server, but the replica server is unable to join the master, for example, due to lack of user permissions. In this case, the test fails by the server start timeout and test-run kills the main server process only. This patch fixes the issue. Fixes #256 Follows up #276
1 parent 2cead4e commit 9c2cc2d

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

lib/tarantool_server.py

-10
Original file line numberDiff line numberDiff line change
@@ -1016,16 +1016,6 @@ def stop(self, silent=True, signal=signal.SIGTERM):
10161016
color_log('Server [%s] start against running ...\n',
10171017
schema='test_var')
10181018
return
1019-
if self.status != 'started':
1020-
if not silent:
1021-
raise Exception('Server is not started')
1022-
else:
1023-
color_log(
1024-
'Server [{0.name}] is not started '
1025-
'(status:{0.status}) ...\n'.format(self),
1026-
schema='test_var'
1027-
)
1028-
return
10291019
if not silent:
10301020
color_stdout('[Instance {}] Stopping the server...\n'.format(
10311021
self.name), schema='info')

0 commit comments

Comments
 (0)