From eeab6d5ce0b4fb5fffeeb7e524e82cb4c6530100 Mon Sep 17 00:00:00 2001 From: Pekka Enberg Date: Mon, 15 Sep 2025 14:21:53 +0300 Subject: [PATCH] stress: Retry sync on error to avoid a panic We now panic on fsync error by default to be safe against fsyncgate. However, no reason to do that in the stress tester, especially since we test out of disk space errors under Antithesis. --- stress/main.rs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/stress/main.rs b/stress/main.rs index 8178e8e13..0282c393d 100644 --- a/stress/main.rs +++ b/stress/main.rs @@ -488,6 +488,8 @@ async fn main() -> Result<(), Box> { let plan = plan.clone(); let conn = db.lock().await.connect()?; + conn.execute("PRAGMA data_sync_retry = 1", ()).await?; + // Apply each DDL statement individually for stmt in &plan.ddl_statements { if opts.verbose {