Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: verify SN can be stopped using SIGTERM #892

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

evgeniiz321
Copy link
Contributor

No description provided.

@@ -56,7 +56,7 @@ def test_storage_node_failover(
if hard_restart:
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