fix: fail the restore stage when writes during backup fail
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -2532,6 +2532,16 @@ class Bench:
|
||||
),
|
||||
)
|
||||
written = parse_summary(stand.work_dir / "last.json")
|
||||
# backup не должен мешать записи: k6 выходит с 0 и при ошибках
|
||||
if (
|
||||
written["requests_failed"]
|
||||
or written["requests_ok"] != p.restore_write_load
|
||||
):
|
||||
raise BenchError(
|
||||
f"size {name}: writes during backup: "
|
||||
f"{written['requests_ok']} of {p.restore_write_load} ok, "
|
||||
f"{written['requests_failed']} failed",
|
||||
)
|
||||
dump_bytes = dump.stat().st_size
|
||||
counts_loaded = stand.table_counts()
|
||||
self.say(
|
||||
|
||||
Reference in New Issue
Block a user