Skip to content

Comments

tests: verify SN can be stopped using SIGTERM#892

Draft
evgeniiz321 wants to merge 1 commit intomasterfrom
ezayats/sn-failover-fix
Draft

tests: verify SN can be stopped using SIGTERM#892
evgeniiz321 wants to merge 1 commit intomasterfrom
ezayats/sn-failover-fix

Conversation

@evgeniiz321
Copy link
Contributor

No description provided.

Signed-off-by: Evgeniy Zayats <zayatsevgeniy@nspcc.io>
node_to_stop.kill()
else:
node_to_stop.stop()
node_to_stop.stop(force=False)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But if it fails, we're stuck here, right? Maybe it's better to pass/check some return code when node is killed.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

no, if it fails - we will get a TimeoutError after 60 seconds

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

flag is about what to do when we get this TimeoutError - with force - we use kill, without force - we raise an error

@evgeniiz321 evgeniiz321 marked this pull request as draft November 5, 2024 14:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants