krishvishal opened a new pull request, #2916:
URL: https://github.com/apache/iggy/pull/2916

   ## Which issue does this PR close?
   
   Closes #2915
   
   ## Summary
   
   - Add `FileStorage`: file-backed `Storage` impl with positional reads, 
appends, truncate, fsync.
   - Add `MetadataJournal`: append-only WAL indexed by a ring buffer (`op % 
SLOT_COUNT`). Crash recovery scans forward and truncates partial tail entries. 
Compaction atomically rewrites the WAL keeping only entries above the snapshot 
watermark.
   - Add `recover()`: startup recovery pipeline that loads the latest snapshot, 
opens the WAL, and replays entries past the snapshot sequence number through 
the state machine.
   - Add `checkpoint()` on `IggyMetadata`: persists a snapshot then advances 
the journal watermark and compacts.
   - Update `Journal` / `Storage` traits: `io::Result` return types, 
`set_snapshot_op`, `remaining_capacity`, `compact` default methods.
   
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to