Issue Description
Currently in src/interpreter/mod.rs, the write_file method in IoClient has a durability issue where sync_all() errors are silently ignored, potentially leading to data loss if the sync fails.
Current Problem
The current code swallows sync_all errors, so a failed fsync still reports success to the caller.
Proposed Solution
Replace the silent error handling with proper error propagation and fallback:
Context
This issue was identified during code review of PR #165 which enhanced file I/O durability features.
Related:
Impact: Data integrity issue where file writes may not be persisted to disk despite appearing successful.
Files affected: src/interpreter/mod.rs (write_file, append_file, close_file methods)
Issue Description
Currently in
src/interpreter/mod.rs, thewrite_filemethod inIoClienthas a durability issue wheresync_all()errors are silently ignored, potentially leading to data loss if the sync fails.Current Problem
The current code swallows
sync_allerrors, so a failed fsync still reports success to the caller.Proposed Solution
Replace the silent error handling with proper error propagation and fallback:
Context
This issue was identified during code review of PR #165 which enhanced file I/O durability features.
Related:
Impact: Data integrity issue where file writes may not be persisted to disk despite appearing successful.
Files affected:
src/interpreter/mod.rs(write_file, append_file, close_file methods)