Skip to content

Commit

Permalink
issue-757: check data that was written before static BS group destruc…
Browse files Browse the repository at this point in the history
…tion in local-emergency test (#2068)
  • Loading branch information
SvartMetal authored Sep 19, 2024
1 parent 0fc87d4 commit b64a8f6
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cloud/blockstore/tests/loadtest/local-emergency/test.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,13 @@ def __run_test(test_case):
env.nbs.storage_config_patches = [storage_config_with_emergency_mode(backups_folder)]
env.nbs.restart()

session.mount_volume()
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()

try:
ret = run_test(
"emergency-%s" % test_case.name,
Expand Down

0 comments on commit b64a8f6

Please sign in to comment.