[MDEV-32662] Capture corrupted binlog events at runtime Created: 2023-11-02  Updated: 2024-01-25

Status: Open
Project: MariaDB Server
Component/s: None
Fix Version/s: None

Type: New Feature Priority: Major
Reporter: Andrei Elkin Assignee: Andrei Elkin
Resolution: Unresolved Votes: 1
Labels: None


 Description   

Apart from binlog media failures, corrupted events can be caused by malfunctioning
server itself.
There were cases when the server binlog was exposed as a target of
misplaced writes to. E.g by a faulty plugin.

This task aims to discover facts of corruption.
A legal binlog (e.g group-commit) writer will try reading out,
as pre-write-catch,
few common headers (19 byte each) of last
events binlogged before to submit or write to binlog own event(s).
At writing to binlog the writer would memorize offsets of the being written events.
At completion respective headers would be tried out reading back - Post-write-catch.

When any error is detected some actions could be done, this needs
elaboration.


Generated at Thu Feb 08 10:33:02 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.