Fix possible 'unexpected data beyond EOF' on replica restart

Edit
ID 6319
Title Fix possible 'unexpected data beyond EOF' on replica restart
CI (CFBot) Summary
Stats (from CFBot) Patch version: v5, Patch count: 1, First patch: +16−1, All patches: +16−1
Topic Bug Fixes
Tags Bugfix
Created 2025-12-16 13:11:35
Last modified 2026-01-16 07:14:46 (1 hour ago)
Latest email 2026-01-15 19:11:54 (13 hours ago)
Status
PG19-4 (2026-01-01 – 2026-01-31): Committed
Target version stable
Authors Anthonin Bonnefoy (bonnefoa)
Reviewers Become reviewer
Committer Heikki Linnakangas (heikki)
Links
Emails
Fix possible 'unexpected data beyond EOF' on replica restart
First at 2025-12-16 13:07:58 by Anthonin Bonnefoy <anthonin.bonnefoy at datadoghq.com>
Latest at 2026-01-15 19:11:54 by Heikki Linnakangas <hlinnaka at iki.fi>
Latest attachment (v5-0001-Fix-unexpected-data-beyond-EOF-on-replica-restart.patch) at 2026-01-12 08:34:21 from Anthonin Bonnefoy <anthonin.bonnefoy at datadoghq.com>
    Attachment (v5-0001-Fix-unexpected-data-beyond-EOF-on-replica-restart.patch) at 2026-01-12 08:34:21 from Anthonin Bonnefoy <anthonin.bonnefoy at datadoghq.com> (Patch: Yes)
    Attachment (v4-0001-Fix-unexpected-data-beyond-EOF-on-replica-restart.patch) at 2025-12-18 16:12:24 from Anthonin Bonnefoy <anthonin.bonnefoy at datadoghq.com> (Patch: Yes)
    Attachment (v3-Fix-unexpected-data-beyond-EOF-on-replica-restart.patch) at 2025-12-18 14:18:46 from Heikki Linnakangas <hlinnaka at iki.fi> (Patch: Yes)
    Attachment (v2-0001-Fix-unexpected-data-beyond-EOF-on-replica-restart.patch) at 2025-12-17 08:40:28 from Anthonin Bonnefoy <anthonin.bonnefoy at datadoghq.com> (Patch: Yes)
    Attachment (v1-0001-Fix-unexpected-data-beyond-EOF-on-replica-restart.patch) at 2025-12-16 13:07:58 from Anthonin Bonnefoy <anthonin.bonnefoy at datadoghq.com> (Patch: Yes)
History
When Who What
2026-01-16 07:14:46 Anthonin Bonnefoy (bonnefoa) Closed in commitfest PG19-4 with status: Committed
2026-01-16 07:14:46 Anthonin Bonnefoy (bonnefoa) Changed committer to heikki
2025-12-16 13:11:35 Anthonin Bonnefoy (bonnefoa) Attached mail thread CAO6_Xqrv-snNJNhbj1KjQmWiWHX3nYGDgAc=vxaZP3qc4g1Siw@mail.gmail.com
2025-12-16 13:11:35 Anthonin Bonnefoy (bonnefoa) Created patch record
Edit