mariadb/sql
Manish Kumar 1605b7f68f BUG#12400221 - 60926: BINARY LOG EVENTS LARGER THAN MAX_ALLOWED_PACKET
Problem
========
            
SQL statements close to the size of max_allowed_packet produce binary
log events larger than max_allowed_packet.
              
The reason why this failure is occuring is because the event length is
more than the total size of the max_allowed_packet + max_event_header
length. Now since the event length exceeds this size master Dump
thread is unable to send the packet on to the slave.
                      
That can happen e.g with row-based replication in Update_rows event.
            
Fix
====
          
The problem was fixed by increasing the max_allowed_packet for the
slave's threads (IO/SQL) by increasing it to 1GB.
This is done using the new server option included which is used to
regulate the max_allowed_packet of the slave thread (IO/SQL).
This causes the large packets to be received by the slave and apply
it successfully.

sql/log_event.h:
  Added the new option in the log_event.h file.
sql/mysqld.cc:
  Added a new option to the server.
sql/slave.cc:
  Increasing the session max_allowed_packet to a large value ,
  i.e. not taking global(max_allowed) into consideration, for the slave's threads.
2012-05-21 12:57:39 +05:30
..
examples Updated/added copyright headers 2011-06-30 17:31:31 +02:00
share BUG#12400221 - 60926: BINARY LOG EVENTS LARGER THAN MAX_ALLOWED_PACKET 2012-05-21 12:57:39 +05:30
.cvsignore
add_errmsg
authors.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
client_settings.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
CMakeLists.txt Updated/added copyright headers 2012-02-15 17:21:38 +01:00
contributors.h
custom_conf.h
debug_sync.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
debug_sync.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
derror.cc Fix for BUG#11755168 '46895: test "outfile_loaddata" fails (reproducible)'. 2011-05-16 22:04:01 +02:00
des_key_file.cc
discover.cc
event_data_objects.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
event_data_objects.h
event_db_repository.cc Updated/added copyright headers 2011-07-03 17:47:37 +02:00
event_db_repository.h Updated/added copyright headers 2011-07-03 17:47:37 +02:00
event_parse_data.cc Updated/added copyright headers 2011-07-03 17:47:37 +02:00
event_parse_data.h Updated/added copyright headers 2011-07-03 17:47:37 +02:00
event_queue.cc
event_queue.h
event_scheduler.cc Bug#12636001 : deadlock from thd_security_context 2012-05-17 18:07:59 +05:30
event_scheduler.h
events.cc Updated/added copyright headers 2011-07-03 17:47:37 +02:00
events.h
field.cc Updated/added copyright headers 2011-07-03 17:47:37 +02:00
field.h Backmerge of BUG#12997905 2011-11-18 14:47:11 +01:00
field_conv.cc Updated/added copyright headers 2012-02-15 17:21:38 +01:00
filesort.cc merge mysql-5.1->mysql-5.1-security 2012-02-17 11:52:41 +02:00
frm_crypt.cc
gen_lex_hash.cc Manual merge from mysql-5.0. 2011-07-22 11:46:45 +04:00
gstream.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
gstream.h
ha_ndbcluster.cc Updated/added copyright headers 2011-07-03 17:47:37 +02:00
ha_ndbcluster.h
ha_ndbcluster_binlog.cc Updated/added copyright headers 2011-07-03 17:47:37 +02:00
ha_ndbcluster_binlog.h
ha_ndbcluster_cond.cc
ha_ndbcluster_cond.h
ha_ndbcluster_tables.h
ha_partition.cc merge into mysql-5.1 2012-02-29 20:51:38 +01:00
ha_partition.h merge into mysql-5.1 2012-02-29 20:51:38 +01:00
handler.cc Bug #12752572 61579: REPLICATION FAILURE WHILE 2012-05-16 11:17:48 +05:30
handler.h Updated/added copyright headers 2011-07-03 17:47:37 +02:00
hash_filo.cc
hash_filo.h
hostname.cc BUG#12377872 ASSERTION FAILED: !_ENTERED WHEN GETHOSTBYADDR_R 2011-04-20 11:32:28 +02:00
init.cc
item.cc Bug#13031606 VALUES() IN A SELECT STATEMENT CRASHES SERVER 2012-03-12 08:56:56 +01:00
item.h Bug#12601974 - STORED PROCEDURE SQL_MODE=NO_BACKSLASH_ESCAPES IGNORED AND BREAKS REPLICATION 2012-02-29 12:23:15 +05:30
item_buff.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
item_cmpfunc.cc Updated/added copyright headers 2011-06-30 17:31:31 +02:00
item_cmpfunc.h Bug#13012483:EXPLAIN EXTENDED, PREPARED STATEMENT, CRASH IN 2012-02-24 11:53:36 +05:30
item_create.cc Updated/added copyright headers 2011-07-03 17:47:37 +02:00
item_create.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
item_func.cc Updated/added copyright headers 2011-06-30 17:31:31 +02:00
item_func.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
item_geofunc.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
item_geofunc.h Updating header copyright/README in source for 2011 2011-01-25 15:42:40 +01:00
item_row.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
item_row.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
item_strfunc.cc Updated/added copyright headers 2012-02-15 17:13:47 +01:00
item_strfunc.h Updated/added copyright headers 2011-07-03 17:47:37 +02:00
item_subselect.cc merge mysql-5.1->mysql-5.1-security 2012-04-10 14:21:57 +03:00
item_subselect.h Updated/added copyright headers 2012-02-15 17:21:38 +01:00
item_sum.cc Updated/added copyright headers 2012-02-15 17:13:47 +01:00
item_sum.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
item_timefunc.cc Updated/added copyright headers 2012-02-15 17:21:38 +01:00
item_timefunc.h Updated/added copyright headers 2011-07-03 17:47:37 +02:00
item_xmlfunc.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
item_xmlfunc.h
key.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
lex.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
lex_symbol.h
lock.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
log.cc BUG#12400313 RELAY_LOG_SPACE_LIMIT IS NOT WORKING IN MANY CASES 2012-03-12 12:28:27 +00:00
log.h BUG#13979418: SHOW BINLOG EVENTS MAY CRASH THE SERVER 2012-04-20 22:25:59 +01:00
log_event.cc BUG#12400221 - 60926: BINARY LOG EVENTS LARGER THAN MAX_ALLOWED_PACKET 2012-05-21 12:57:39 +05:30
log_event.h BUG#12400221 - 60926: BINARY LOG EVENTS LARGER THAN MAX_ALLOWED_PACKET 2012-05-21 12:57:39 +05:30
log_event_old.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
log_event_old.h
Makefile.am new header file must be listed in Makefile.am 2012-04-18 14:13:13 +02:00
mem_root_array.h Backport 5.5=>5.1 Patch for Bug#13805127: 2012-04-18 13:14:05 +02:00
message.h Updated/added copyright headers 2011-06-30 17:31:31 +02:00
message.mc
message.rc
mf_iocache.cc
MSG00001.bin
my_decimal.cc Updated/added copyright headers 2011-07-03 17:47:37 +02:00
my_decimal.h Updated/added copyright headers 2012-02-15 17:21:38 +01:00
my_lock.c
mysql_priv.h BUG#12400221 - 60926: BINARY LOG EVENTS LARGER THAN MAX_ALLOWED_PACKET 2012-05-21 12:57:39 +05:30
mysql_priv.h.pp
mysqld.cc BUG#12400221 - 60926: BINARY LOG EVENTS LARGER THAN MAX_ALLOWED_PACKET 2012-05-21 12:57:39 +05:30
mysqld_suffix.h
net_serv.cc Updated/added copyright headers 2011-06-30 17:31:31 +02:00
nt_servc.cc
nt_servc.h
opt_range.cc Updated/added copyright headers 2011-07-03 17:47:37 +02:00
opt_range.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
opt_sum.cc Updated/added copyright headers 2011-07-03 17:47:37 +02:00
parse_file.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
parse_file.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
partition_element.h
partition_info.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
partition_info.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
password.c Bug #13934049: 64884: LOGINS WITH INCORRECT PASSWORD ARE ALLOWED 2012-04-06 12:04:07 +03:00
procedure.cc
procedure.h
protocol.cc Updated/added copyright headers 2012-02-15 17:21:38 +01:00
protocol.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
records.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
repl_failsafe.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
repl_failsafe.h
rpl_constants.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
rpl_filter.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
rpl_filter.h
rpl_injector.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
rpl_injector.h
rpl_mi.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
rpl_mi.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
rpl_record.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
rpl_record.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
rpl_record_old.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
rpl_record_old.h
rpl_reporting.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
rpl_reporting.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
rpl_rli.cc BUG#11754117 incorrect logging of INSERT into auto-increment 2012-04-20 19:41:20 +03:00
rpl_rli.h BUG#11754117 incorrect logging of INSERT into auto-increment 2012-04-20 19:41:20 +03:00
rpl_tblmap.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
rpl_tblmap.h
rpl_utility.cc BUG#11754117 incorrect logging of INSERT into auto-increment 2012-04-20 19:41:20 +03:00
rpl_utility.h BUG#11754117 incorrect logging of INSERT into auto-increment 2012-04-20 19:41:20 +03:00
scheduler.cc
scheduler.h
set_var.cc BUG#12400221 - 60926: BINARY LOG EVENTS LARGER THAN MAX_ALLOWED_PACKET 2012-05-21 12:57:39 +05:30
set_var.h Updated/added copyright headers 2011-06-30 17:31:31 +02:00
signal_handler.cc Bug#11761576 54082: HANDLE_SEGFAULT MAKES USE OF UNSAFE FUNCTIONS 2012-03-06 13:30:30 +01:00
slave.cc BUG#12400221 - 60926: BINARY LOG EVENTS LARGER THAN MAX_ALLOWED_PACKET 2012-05-21 12:57:39 +05:30
slave.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sp.cc Updated/added copyright headers 2011-07-03 17:47:37 +02:00
sp.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sp_cache.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sp_cache.h
sp_head.cc Merge from mysql-5.1.62-release 2012-03-20 17:35:41 +01:00
sp_head.h Backport from mysql-trunk of: 2012-01-09 11:28:02 +01:00
sp_pcontext.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sp_pcontext.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sp_rcontext.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sp_rcontext.h
spatial.cc Fix for BUG#12414917 - ISCLOSED() CRASHES ON 64-BIT BUILDS 2012-03-05 21:58:07 +04:00
spatial.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_acl.cc Updated/added copyright headers 2011-06-30 17:31:31 +02:00
sql_acl.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_analyse.cc Updated/added copyright headers 2011-07-03 17:47:37 +02:00
sql_analyse.h
sql_array.h
sql_base.cc Bug#12636001 : deadlock from thd_security_context 2012-05-17 18:07:59 +05:30
sql_binlog.cc Updated/added copyright headers 2011-07-03 17:47:37 +02:00
sql_bitmap.h
sql_builtin.cc.in
sql_cache.cc Updated/added copyright headers 2012-02-15 17:21:38 +01:00
sql_cache.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_class.cc Bug#12636001 : deadlock from thd_security_context 2012-05-17 18:07:59 +05:30
sql_class.h Bug#12636001 : deadlock from thd_security_context 2012-05-17 18:07:59 +05:30
sql_client.cc
sql_connect.cc Updated/added copyright headers 2012-02-15 17:21:38 +01:00
sql_crypt.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_crypt.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_cursor.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_cursor.h
sql_db.cc Updated/added copyright headers 2011-07-03 17:47:37 +02:00
sql_delete.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_derived.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_do.cc
sql_error.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_error.h
sql_handler.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_help.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_insert.cc Bug#11759688 52020: InnoDB can still deadlock on just INSERT...ON DUPLICATE KEY 2011-11-10 12:49:31 +02:00
sql_lex.cc Backport 5.5=>5.1 Patch for Bug#13805127: 2012-04-18 13:14:05 +02:00
sql_lex.h Backport 5.5=>5.1 Patch for Bug#13805127: 2012-04-18 13:14:05 +02:00
sql_list.cc
sql_list.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_load.cc Updated/added copyright headers 2012-02-15 17:13:47 +01:00
sql_locale.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_manager.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_map.cc
sql_map.h
sql_olap.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_parse.cc Bug#12636001 : deadlock from thd_security_context 2012-05-17 18:07:59 +05:30
sql_partition.cc merge of mysql-5.1->mysql-5.1-security 2011-06-06 16:53:46 +03:00
sql_partition.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_plugin.cc Updated/added copyright headers 2011-07-03 17:47:37 +02:00
sql_plugin.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_prepare.cc Backport 5.5=>5.1 Patch for Bug#13805127: 2012-04-18 13:14:05 +02:00
sql_profile.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_profile.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_rename.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_repl.cc BUG#12400221 - 60926: BINARY LOG EVENTS LARGER THAN MAX_ALLOWED_PACKET 2012-05-21 12:57:39 +05:30
sql_repl.h
sql_select.cc Merge from mysql-5.1.63-release 2012-05-08 07:19:14 +02:00
sql_select.h Updated/added copyright headers 2011-07-03 17:47:37 +02:00
sql_servers.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_servers.h
sql_show.cc BUG#12427262 : 60961: SHOW TABLES VERY SLOW WHEN NOT IN SYSTEM DISK CACHE 2012-04-19 14:57:34 +05:30
sql_show.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_sort.h
sql_state.c
sql_string.cc Updated/added copyright headers 2012-02-15 17:13:47 +01:00
sql_string.h Updated/added copyright headers 2011-07-03 17:47:37 +02:00
sql_table.cc Updated/added copyright headers 2012-02-15 17:13:47 +01:00
sql_tablespace.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_test.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_trigger.cc Updated/added copyright headers 2011-07-03 17:47:37 +02:00
sql_trigger.h Updated/added copyright headers 2011-07-03 17:47:37 +02:00
sql_udf.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_udf.h
sql_union.cc Bug#11765255 - 58201: VALGRIND/CRASH WHEN ORDERING BY MULTIPLE AGGREGATE FUNCTIONS 2011-07-11 11:20:19 +02:00
sql_update.cc Updated/added copyright headers 2011-06-30 17:31:31 +02:00
sql_view.cc Updated/added copyright headers 2012-02-15 17:13:47 +01:00
sql_view.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
sql_yacc.yy Backport from mysql-trunk of: 2012-01-09 11:28:02 +01:00
strfunc.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
structs.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
table.cc Backport of fix for Bug#12763207 - ASSERT IN SUBSELECT::SINGLE_VALUE_TRANSFORMER 2012-03-27 14:39:27 +02:00
table.h Bug#13580775 ASSERTION FAILED: RECORD_LENGTH == M_RECORD_LENGTH 2012-01-27 11:13:13 +01:00
thr_malloc.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
time.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
tzfile.h
tztime.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
tztime.h Updated/added copyright headers 2011-06-30 17:37:13 +02:00
udf_example.c Updated/added copyright headers 2011-06-30 17:37:13 +02:00
udf_example.def
uniques.cc Updated/added copyright headers 2011-06-30 17:37:13 +02:00
unireg.cc Updated/added copyright headers 2011-07-03 17:47:37 +02:00
unireg.h Updated/added copyright headers 2012-02-15 17:21:38 +01:00