Skip to content

Commit

Permalink
Kill hanging processes of not started servers
Browse files Browse the repository at this point in the history
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
  • Loading branch information
ylobankov committed Mar 17, 2022
1 parent 6c318b6 commit f63d85e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tarantool_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -1016,7 +1016,7 @@ def stop(self, silent=True, signal=signal.SIGTERM):
color_log('Server [%s] start against running ...\n',
schema='test_var')
return
if self.status != 'started':
if self.status != 'started' and not hasattr(self, 'process'):
if not silent:
raise Exception('Server is not started')
else:
Expand Down

0 comments on commit f63d85e

Please sign in to comment.