numinnex opened a new issue, #4441: URL: https://github.com/apache/iggy/issues/4441
### Description Both torn-tail specs in `core/integration/tests/cluster/crash_recovery_corruption.rs` tear a backup's segment and restart that backup. Nothing tears the leader's active segment. A leader that recovers from a torn tail has to serve reads and drive repair from the reopened segment, which is a different path from a backup catching up, and no test covers it. ### Proposed solution Add a primary-side variant of at least the `.log` case: tear the leader's active segment, restart that node, and assert the same contract the backup specs assert (survives the next restart, every acked offset still reads back, at-rest bytes match across replicas). ### Affected area / component Integration tests, Iggy server (segment recovery) -- 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]
