Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Won't Fix
-
Affects Version/s: 10.0.2
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
Description
We have the attached patch in our MySQL and MariaDB trees that removes the code putting stop events into binlog. The reasoning for removing these events is:
- The slave takes no action in response to the event so it isn't needed to begin with.
- If the master and slave are running with different binlog formats, the slave writes the stop event in its format while the rest of the events in the relay logs are of the master's format. This can cause the SQL thread to explode when it tries to read the stop event.
- If the master is generating an ID sequence we do not want the stop event to consume an ID.
Could you consider including this patch into MariaDB?
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
I do not understand the rationale for this patch:
> 2. If the master and slave are running with different binlog formats, the
> slave writes the stop event in its format while the rest of the events in
> the relay logs are of the master's format. This can cause the SQL thread to
> explode when it tries to read the stop event.
I do not understand "different format"? As far as I know, the stop event is
always in the same format in MariaDB (I know only of statement vs. row format,
which applies only to query events).
Can you explain how to make the "SQL thread to explode" on stop event in
MariaDB?
> 3. If the master is generating an ID sequence we do not want the stop event
> to consume an ID.
In MariaDB GTID, IDs are generated only for GTID events, not for STOP or any
other event.
It sounds to me like this is related to the Google patch for global
transaction ID. Where an ID is added to every event (hence 3). And where
perhaps this adding of ID or not can be enabled/disabled? Hence (2).
But this does not apply to MariaDB. Global transaction ID is always enabled,
and it only affects the new GTID events, so no different formats of events.
/me confused ...