Details
-
Bug
-
Status: Confirmed (View Workflow)
-
Minor
-
Resolution: Unresolved
-
10.11
-
Unexpected results
Description
relay_log_pos has its validity checked at CHANGE MASTER time rather than when opening the relay log.
This means, although CHANGE MASTER cannot set relay_log_pos to a nonëxistent (past-EOF) file position, it can still become nonëxistent outside of CHANGE MASTER if:
- The relay log is manually truncated (that is, without using a Server feature like RESET SLAVE), or
- The slave is restarted to load a manually-edited relay-log.info (relay_log_pos is the 3rd line).
This is more of a validation discrepancy than a loophole, as the SQL Thread will (attempt to) seek to the past-EOF location and continue with no issues.
By editing the relay-log.info, relay_log_pos can also be set to a number < 4.
This will fail the assertion event_relay_log_pos >= 4 on a debug build.
Note that reloading CHANGE MASTER options from master/relay_log.info without constraint verification is usually fine, as other invalid options naturally become runtime errors; e.g. for master_log_pos:
Got fatal error 1236 from master when reading data from binary log: 'Client requested master to start replication from impossible position; the first event 'master-bin.000001' at 1048576, the last event read from 'master-bin.000001' at 4, the last byte read from 'master-bin.000001' at 4.'
Attachments
Issue Links
- relates to
-
MDEV-41085
Enable MTR tests on Windows: rpl suite
-
- In Testing
-
- split from
-
MDEV-38020 Master & Relay Log info files read 2^31 and above incorrectly
-
- Closed
-
- split to
-
MDEV-42237 rpl.rpl_read_old_relay_log_info fails on Windows (Linux-style path)
-
- Approved
-