Skip to content

Commit 60e9fce

Browse files
committed
Add signal argument to server restart routine
Found that stop and restart routines should have the ability to set signal using restart routine to fix the issues, like: Test hung! Result content mismatch: --- replication-py/init_storage.result Wed Aug 26 06:06:15 2020 +++ /tmp/tnt/101_replication-py/init_storage.result Wed Nov 11 10:17:50 2020 @@ -130,5 +130,3 @@ ------------------------------------------------------------- waiting reconnect on JOIN... ok -waiting reconnect on SUBSCRIBE... -ok
1 parent 96dea99 commit 60e9fce

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/tarantool_server.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -986,8 +986,8 @@ def stop(self, silent=True, signal=signal.SIGTERM):
986986
if os.path.exists(self._admin.port):
987987
os.unlink(self._admin.port)
988988

989-
def restart(self):
990-
self.stop()
989+
def restart(self, signal=signal.SIGTERM):
990+
self.stop(signal)
991991
self.start()
992992

993993
def kill_old_server(self, silent=True):

0 commit comments

Comments
 (0)