Skip to content

Commit f63d85e

Browse files
committed
Kill hanging processes of not started servers
It was found that hanging processes of not 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 6c318b6 commit f63d85e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tarantool_server.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1016,7 +1016,7 @@ 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':
1019+
if self.status != 'started' and not hasattr(self, 'process'):
10201020
if not silent:
10211021
raise Exception('Server is not started')
10221022
else:

0 commit comments

Comments
 (0)