mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-25 12:04:21 +01:00
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.
This commit is contained in:
@@ -488,6 +488,8 @@ async fn main() -> Result<(), Box<dyn std::error::Error + Send + Sync>> {
|
||||
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 {
|
||||
|
||||
Reference in New Issue
Block a user