[MDEV-31757] Compressed binary log with two-phase alter events cannot be replayed Created: 2023-07-21  Updated: 2023-11-28

Status: Open
Project: MariaDB Server
Component/s: Replication, Scripts & Clients
Affects Version/s: 10.8, 10.9, 10.10, 10.11, 11.0, 11.1
Fix Version/s: 10.11, 11.0, 11.1

Type: Bug Priority: Major
Reporter: Elena Stepanova Assignee: Brandon Nesterenko
Resolution: Unresolved Votes: 0
Labels: None


 Description   

--source include/have_log_bin.inc
 
set @min_len= @@log_bin_compress_min_len, @compress= @@log_bin_compress, @two_phase= @@binlog_alter_two_phase;
set global log_bin_compress_min_len=40, log_bin_compress=on, binlog_alter_two_phase=ON;
reset master;
 
--connect (con1,localhost,root,,)
create table t (a int);
alter table t add b int, add c int, add d int;
flush binary logs;
drop table t;
--let $datadir= `select @@datadir`
--exec $MYSQL_BINLOG $datadir/master-bin.000001 | $MYSQL test
 
# Cleanup
drop table t;
--disconnect con1
--connection default
set global log_bin_compress_min_len=@min_len, log_bin_compress=@compress, binlog_alter_two_phase=@two_phase;

10.9 42738f5f

ERROR 1730 (HY000) at line 45: Only Format_description_log_event and row events are allowed in BINLOG statements (but Query_compressed was provided)

Replication works somehow, so probably it is a clients' problem.


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