[MDEV-26908] DROP temporary table from triggers and stored functions may be logged incorrectly Created: 2021-10-26 Updated: 2023-04-27 |
|
| Status: | Open |
| Project: | MariaDB Server |
| Component/s: | Replication |
| Affects Version/s: | 10.2, 10.3, 10.4, 10.5, 10.6, 10.7 |
| Fix Version/s: | 10.4, 10.5, 10.6 |
| Type: | Bug | Priority: | Major |
| Reporter: | Andrei Elkin | Assignee: | Andrei Elkin |
| Resolution: | Unresolved | Votes: | 0 |
| Labels: | None | ||
| Description |
|
There are few issues in DROP and also CREATE temporary table's binary logging.
gets cached to split two consecutive Rows_log_event (so slave will stop
The function is defined with
Slave reasonably fails to receive such malformed group of events:
2. Query log event of DROP temporary table gets cleared at statement rollback if
SHOW BINLOG EVENTS displays no DROP. 3. The fact of logged CREATE temporary table with a stored function or trigger gets forgotten at binlogging of the statement (in STATEMENT format) so when the transaction eventually ROLLBACKs the statement's Query log event that implicitly created the table also gets removed while it's replication unsafe. |