hubcio opened a new pull request, #3946: URL: https://github.com/apache/iggy/pull/3946
After a crash left a half-written tail on a segment, recovery found the correct end of valid data, but reopening the segment read the raw file length back in and overwrote that result. The garbage tail came back to life, the next restart refused to boot, and replicas copied the bad bytes around. Recovery now bounds every segment without touching disk, checks the chain, and only then cuts torn tails off the files, rebuilding the index when damaged. Damage in the middle of a segment is never cut out silently: the partition is refused, its files set aside, and it is rebuilt from replicas (PartitionRecoveryRefused, replacing PartitionChainRefused and RecoveredSegmentSizeDivergence). Nodes already stuck on this bug can boot again. Writers verify the expected size against the file at open and refuse on mismatch. -- 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]
