jiengup opened a new pull request, #4278:
URL: https://github.com/apache/iggy/pull/4278
## Which issue does this PR address?
Closes #4252
## Rationale
A fresh handle opened for a backup hard link can miss a
writeback error recorded on the original writer. The
backup could then be published with lost bytes.
## What changed?
Before publishing .install-backup, state transfer now
synchronizes live segment and index writers, retained
offset files, and the WAL while holding the partition
write lock. A sync failure fences the install; this
barrier does not advance the checkpoint frontier. The
simulator writeback regression is enabled, and the shared
file sync type no longer carries a checkpoint-specific
name.
## Local Execution
- Passed: cargo fmt --all, cargo sort --no-format
--workspace, full workspace Clippy, cargo check -p
partitions --no-default-features, and the partitions and
simulator unit suites.
- Pre-commit hooks passed. The Linux-only partition
regression was not run locally on macOS; the simulator
regression passed.
## AI Usage
1. Tool: OpenAI Codex.
2. Scope: analysis, implementation, tests, and review.
3. Verification: the local checks and test suites listed
above.
4. I can explain every changed line if asked.
--
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]