3658
MySQLERRORNotableReplicationHIGH confidence
replica_pending_jobs_size_max smaller than max_allowed_packet
Production Risk
High — Large events will fail to be applied; replication stops.
How to reproduce
trigger — this will error
trigger — this will error
SET GLOBAL replica_pending_jobs_size_max = 1048576; -- smaller than max_allowed_packet of 67MB
expected output
ERROR 3658 (HY000): replica_pending_jobs_size_max is smaller than max_allowed_packet.
Fix
Align pending jobs buffer with max packet
Align pending jobs buffer with max packet
SET GLOBAL replica_pending_jobs_size_max = @@global.max_allowed_packet;
Why this works
Ensures the pending jobs buffer can hold at least one maximum-size packet.
What not to do
✕
Version notes
Sources
Official documentation ↗
MySQL 8.0 — 3658 ER_REPLICA_PENDING_JOBS_SIZE_MAX_SMALLER_THAN_MAX_PACKET
Content generated with AI assistance and reviewed for accuracy. Found an error? hello@errcodes.dev