Bug #106727 Report ERROR when logging big binlog events
Submitted: 15 Mar 2022 2:22 Modified: 15 Mar 2022 7:35
Reporter: shangshang yu Email Updates:
Status: Verified Impact on me:
None 
Category:MySQL Server: Replication Severity:S3 (Non-critical)
Version:8.0.28, 5.7.37 OS:Any
Assigned to: CPU Architecture:Any

[15 Mar 2022 2:22] shangshang yu
Description:
Update a table report an ERROR:

ERROR 1534 (HY000): Writing one row to the row-based binary log failed

How to repeat:
CREATE TABLE `t1` (
  `ID` int NOT NULL AUTO_INCREMENT,
  `C_TINYBLOB` tinyblob,
  `C_BLOB` blob,
  `C_MEDIUMBLOB` mediumblob,
  `C_LONGBLOB` longblob,
  `C_TINYTEXT` tinytext,
  `C_TEXT` text,
  `C_MEDIUMTEXT` mediumtext,
  `C_LONGTEXT` longtext,
  `C_JSON` json DEFAULT NULL,
  PRIMARY KEY (`ID`)
) ENGINE=InnoDB AUTO_INCREMENT=254 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_0900_ai_ci;

INSERT INTO t1(
C_TINYBLOB,
C_BLOB,
C_MEDIUMBLOB,
C_LONGBLOB,
C_TINYTEXT,
C_TEXT,
C_MEDIUMTEXT,
C_LONGTEXT,
C_JSON) VALUES(
'中文字符',
NULL,
repeat('a',16777215),
repeat('b',1024*1024*1024),
repeat('1',254),
repeat('1',65534),
repeat('0',16772150),
repeat('b',1024*1024*1024-1),
concat('{"a":','"',repeat('a',261),'",','"b":','"',repeat('2',65793),'",','"c":','"',repeat('3',257),'",','"d":','"',repeat('d',65773),'"}')
), (
'中文字符',
NULL,
repeat('a',16777215),
repeat('b',1024*1024*1024),
repeat('1',254),
repeat('1',65534),
repeat('0',16772150),
repeat('b',1024*1024*1024-1),
concat('{"a":','"',repeat('a',261),'",','"b":','"',repeat('2',65793),'",','"c":','"',repeat('3',257),'",','"d":','"',repeat('d',65773),'"}'));

update t1 set C_BLOB='aaaaaa';
[15 Mar 2022 7:35] MySQL Verification Team
Hello Shangshang yu,

Thank you for the report.
Verified as described.

regards,
Umesh