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

issue-757: should not unmount volume (in local-emergency test) before static BS group destruction in order to make emergency unexpected #2079

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

SvartMetal
Copy link
Collaborator

@SvartMetal SvartMetal commented Sep 19, 2024

… static BS group destruction in order to make emergency unexpected
data = session.read_blocks(100499, 3, "")
# check data (that was written) together with left & right neighborhood
assert data == [b''] + [b'\1' * 4096] + [b'']
# TODO: should not unmount volume to make emergency unexpected
session.unmount_volume()
Copy link
Collaborator Author

@SvartMetal SvartMetal Sep 19, 2024

Choose a reason for hiding this comment

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

этот unmount здесь нужен, так как мы хотим проверить два сценария:

  • монтирование диска -> катастрофа -> чтение (из той же сессии) - тем самым убеждаемся что диск не размонтировался из-за катастрофы
  • катастрофа -> отмонтирование диска и монтирование его заново (в ходе теста) - тем самым убеждаемся что диск можно отмонтировать и снова смонтировать

@@ -116,11 +114,9 @@ def __run_test(test_case):
env.nbs.storage_config_patches = [storage_config_with_emergency_mode(backups_folder)]
env.nbs.restart()

session.mount_volume()
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

теоретически тест может упасть с invalid session, если nbs/kikimr долго рестартует

проверю локально, поставив прогон в цикле на ночь

@SvartMetal SvartMetal added blockstore Add this label to run only cloud/blockstore build and tests on PR large-tests Launch large tests for PR labels Sep 19, 2024
Copy link
Contributor

Note

This is an automated comment that will be appended during run.

🟢 linux-x86_64-relwithdebinfo: all tests PASSED for commit e35f82c.

TESTS PASSED ERRORS FAILED SKIPPED MUTED?
3461 3461 0 0 0 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
blockstore Add this label to run only cloud/blockstore build and tests on PR large-tests Launch large tests for PR
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants