mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
Merge mysql1000.(none):/home/andrei/MySQL/FIXES/5.1/bug22234-Extra_Slave_Col_Slave_should_stop_on_Error_Field
into mysql1000.(none):/home/andrei/MySQL/MERGE/5.1 sql/log_event.cc: manual merge
This commit is contained in:
@ -403,45 +403,38 @@ sync_slave_with_master;
|
|||||||
# added columns do not have default values#
|
# added columns do not have default values#
|
||||||
# Expect: Proper error message #
|
# Expect: Proper error message #
|
||||||
###########################################
|
###########################################
|
||||||
# Commented out due to Bug #23907 Extra Slave Col is not
|
# Bug#22234, Bug#23907 Extra Slave Col is not
|
||||||
# erroring on extra col with no default values.
|
# erroring on extra col with no default values.
|
||||||
########################################################
|
########################################################
|
||||||
#--echo *** Create t9 on slave ***
|
#--echo *** Create t9 on slave ***
|
||||||
#STOP SLAVE;
|
STOP SLAVE;
|
||||||
#RESET SLAVE;
|
RESET SLAVE;
|
||||||
#eval CREATE TABLE t9 (a INT KEY, b BLOB, c CHAR(5),
|
eval CREATE TABLE t9 (a INT KEY, b BLOB, c CHAR(5),
|
||||||
# d TIMESTAMP,
|
d TIMESTAMP,
|
||||||
# e INT DEFAULT '1')ENGINE=$engine_type;
|
e INT NOT NULL) ENGINE=$engine_type;
|
||||||
|
|
||||||
#--echo *** Create t9 on Master ***
|
--echo *** Create t9 on Master ***
|
||||||
#connection master;
|
connection master;
|
||||||
#eval CREATE TABLE t9 (a INT PRIMARY KEY, b BLOB, c CHAR(5)
|
eval CREATE TABLE t9 (a INT PRIMARY KEY, b BLOB, c CHAR(5)
|
||||||
# ) ENGINE=$engine_type;
|
) ENGINE=$engine_type;
|
||||||
#RESET MASTER;
|
RESET MASTER;
|
||||||
|
|
||||||
#--echo *** Start Slave ***
|
--echo *** Start Slave ***
|
||||||
#connection slave;
|
connection slave;
|
||||||
#START SLAVE;
|
START SLAVE;
|
||||||
|
|
||||||
#--echo *** Master Data Insert ***
|
--echo *** Master Data Insert ***
|
||||||
#connection master;
|
connection master;
|
||||||
#set @b1 = 'b1b1b1b1';
|
set @b1 = 'b1b1b1b1';
|
||||||
#set @b1 = concat(@b1,@b1);
|
set @b1 = concat(@b1,@b1);
|
||||||
#INSERT INTO t9 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
|
INSERT INTO t9 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
|
||||||
|
|
||||||
#--echo *************************************************
|
--source include/wait_for_slave_sql_to_stop.inc
|
||||||
#--echo ** Currently giving wrong error see bug#22234 ***
|
--replace_result $MASTER_MYPORT MASTER_PORT
|
||||||
#--echo *************************************************
|
--replace_column 1 # 4 # 7 # 8 # 9 # 16 # 22 # 23 # 33 # 35 # 36 #
|
||||||
#sync_slave_with_master;
|
--query_vertical SHOW SLAVE STATUS
|
||||||
#connection slave;
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
|
START SLAVE;
|
||||||
#--echo *** Select from T9 ***
|
|
||||||
#--source include/wait_for_slave_sql_to_stop.inc
|
|
||||||
#--replace_result $MASTER_MYPORT MASTER_PORT
|
|
||||||
#--replace_column 1 # 4 # 7 # 8 # 9 # 16 # 22 # 23 # 33 # 35 # 36 #
|
|
||||||
#--query_vertical SHOW SLAVE STATUS
|
|
||||||
#SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
|
||||||
#START SLAVE;
|
|
||||||
|
|
||||||
#--echo *** Drop t9 ***
|
#--echo *** Drop t9 ***
|
||||||
#connection master;
|
#connection master;
|
||||||
|
@ -399,6 +399,62 @@ set @b1 = concat(@b1,@b1);
|
|||||||
INSERT INTO t8 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
|
INSERT INTO t8 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
|
||||||
*** Drop t8 ***
|
*** Drop t8 ***
|
||||||
DROP TABLE t8;
|
DROP TABLE t8;
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
CREATE TABLE t9 (a INT KEY, b BLOB, c CHAR(5),
|
||||||
|
d TIMESTAMP,
|
||||||
|
e INT NOT NULL) ENGINE='InnoDB';
|
||||||
|
*** Create t9 on Master ***
|
||||||
|
CREATE TABLE t9 (a INT PRIMARY KEY, b BLOB, c CHAR(5)
|
||||||
|
) ENGINE='InnoDB';
|
||||||
|
RESET MASTER;
|
||||||
|
*** Start Slave ***
|
||||||
|
START SLAVE;
|
||||||
|
*** Master Data Insert ***
|
||||||
|
set @b1 = 'b1b1b1b1';
|
||||||
|
set @b1 = concat(@b1,@b1);
|
||||||
|
INSERT INTO t9 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
|
||||||
|
SHOW SLAVE STATUS;
|
||||||
|
Slave_IO_State #
|
||||||
|
Master_Host 127.0.0.1
|
||||||
|
Master_User root
|
||||||
|
Master_Port #
|
||||||
|
Connect_Retry 1
|
||||||
|
Master_Log_File master-bin.000001
|
||||||
|
Read_Master_Log_Pos #
|
||||||
|
Relay_Log_File #
|
||||||
|
Relay_Log_Pos #
|
||||||
|
Relay_Master_Log_File master-bin.000001
|
||||||
|
Slave_IO_Running Yes
|
||||||
|
Slave_SQL_Running No
|
||||||
|
Replicate_Do_DB
|
||||||
|
Replicate_Ignore_DB
|
||||||
|
Replicate_Do_Table
|
||||||
|
Replicate_Ignore_Table #
|
||||||
|
Replicate_Wild_Do_Table
|
||||||
|
Replicate_Wild_Ignore_Table
|
||||||
|
Last_Errno 1364
|
||||||
|
Last_Error Could not execute Write_rows event on table test.t9; Field 'e' doesn't have a default value, Error_code: 1364; handler error HA_ERR_ROWS_EVENT_APPLY; the event's master log master-bin.000001, end_log_pos 330
|
||||||
|
Skip_Counter 0
|
||||||
|
Exec_Master_Log_Pos #
|
||||||
|
Relay_Log_Space #
|
||||||
|
Until_Condition None
|
||||||
|
Until_Log_File
|
||||||
|
Until_Log_Pos 0
|
||||||
|
Master_SSL_Allowed No
|
||||||
|
Master_SSL_CA_File
|
||||||
|
Master_SSL_CA_Path
|
||||||
|
Master_SSL_Cert
|
||||||
|
Master_SSL_Cipher
|
||||||
|
Master_SSL_Key
|
||||||
|
Seconds_Behind_Master #
|
||||||
|
Master_SSL_Verify_Server_Cert No
|
||||||
|
Last_IO_Errno #
|
||||||
|
Last_IO_Error #
|
||||||
|
Last_SQL_Errno 1364
|
||||||
|
Last_SQL_Error Could not execute Write_rows event on table test.t9; Field 'e' doesn't have a default value, Error_code: 1364; handler error HA_ERR_ROWS_EVENT_APPLY; the event's master log master-bin.000001, end_log_pos 330
|
||||||
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
|
START SLAVE;
|
||||||
*** Create t10 on slave ***
|
*** Create t10 on slave ***
|
||||||
STOP SLAVE;
|
STOP SLAVE;
|
||||||
RESET SLAVE;
|
RESET SLAVE;
|
||||||
|
@ -399,6 +399,62 @@ set @b1 = concat(@b1,@b1);
|
|||||||
INSERT INTO t8 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
|
INSERT INTO t8 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
|
||||||
*** Drop t8 ***
|
*** Drop t8 ***
|
||||||
DROP TABLE t8;
|
DROP TABLE t8;
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
CREATE TABLE t9 (a INT KEY, b BLOB, c CHAR(5),
|
||||||
|
d TIMESTAMP,
|
||||||
|
e INT NOT NULL) ENGINE='MyISAM';
|
||||||
|
*** Create t9 on Master ***
|
||||||
|
CREATE TABLE t9 (a INT PRIMARY KEY, b BLOB, c CHAR(5)
|
||||||
|
) ENGINE='MyISAM';
|
||||||
|
RESET MASTER;
|
||||||
|
*** Start Slave ***
|
||||||
|
START SLAVE;
|
||||||
|
*** Master Data Insert ***
|
||||||
|
set @b1 = 'b1b1b1b1';
|
||||||
|
set @b1 = concat(@b1,@b1);
|
||||||
|
INSERT INTO t9 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
|
||||||
|
SHOW SLAVE STATUS;
|
||||||
|
Slave_IO_State #
|
||||||
|
Master_Host 127.0.0.1
|
||||||
|
Master_User root
|
||||||
|
Master_Port #
|
||||||
|
Connect_Retry 1
|
||||||
|
Master_Log_File master-bin.000001
|
||||||
|
Read_Master_Log_Pos #
|
||||||
|
Relay_Log_File #
|
||||||
|
Relay_Log_Pos #
|
||||||
|
Relay_Master_Log_File master-bin.000001
|
||||||
|
Slave_IO_Running Yes
|
||||||
|
Slave_SQL_Running No
|
||||||
|
Replicate_Do_DB
|
||||||
|
Replicate_Ignore_DB
|
||||||
|
Replicate_Do_Table
|
||||||
|
Replicate_Ignore_Table #
|
||||||
|
Replicate_Wild_Do_Table
|
||||||
|
Replicate_Wild_Ignore_Table
|
||||||
|
Last_Errno 1364
|
||||||
|
Last_Error Could not execute Write_rows event on table test.t9; Field 'e' doesn't have a default value, Error_code: 1364; handler error HA_ERR_ROWS_EVENT_APPLY; the event's master log master-bin.000001, end_log_pos 262
|
||||||
|
Skip_Counter 0
|
||||||
|
Exec_Master_Log_Pos #
|
||||||
|
Relay_Log_Space #
|
||||||
|
Until_Condition None
|
||||||
|
Until_Log_File
|
||||||
|
Until_Log_Pos 0
|
||||||
|
Master_SSL_Allowed No
|
||||||
|
Master_SSL_CA_File
|
||||||
|
Master_SSL_CA_Path
|
||||||
|
Master_SSL_Cert
|
||||||
|
Master_SSL_Cipher
|
||||||
|
Master_SSL_Key
|
||||||
|
Seconds_Behind_Master #
|
||||||
|
Master_SSL_Verify_Server_Cert No
|
||||||
|
Last_IO_Errno #
|
||||||
|
Last_IO_Error #
|
||||||
|
Last_SQL_Errno 1364
|
||||||
|
Last_SQL_Error Could not execute Write_rows event on table test.t9; Field 'e' doesn't have a default value, Error_code: 1364; handler error HA_ERR_ROWS_EVENT_APPLY; the event's master log master-bin.000001, end_log_pos 262
|
||||||
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
|
START SLAVE;
|
||||||
*** Create t10 on slave ***
|
*** Create t10 on slave ***
|
||||||
STOP SLAVE;
|
STOP SLAVE;
|
||||||
RESET SLAVE;
|
RESET SLAVE;
|
||||||
|
@ -399,6 +399,62 @@ set @b1 = concat(@b1,@b1);
|
|||||||
INSERT INTO t8 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
|
INSERT INTO t8 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
|
||||||
*** Drop t8 ***
|
*** Drop t8 ***
|
||||||
DROP TABLE t8;
|
DROP TABLE t8;
|
||||||
|
STOP SLAVE;
|
||||||
|
RESET SLAVE;
|
||||||
|
CREATE TABLE t9 (a INT KEY, b BLOB, c CHAR(5),
|
||||||
|
d TIMESTAMP,
|
||||||
|
e INT NOT NULL) ENGINE='NDB';
|
||||||
|
*** Create t9 on Master ***
|
||||||
|
CREATE TABLE t9 (a INT PRIMARY KEY, b BLOB, c CHAR(5)
|
||||||
|
) ENGINE='NDB';
|
||||||
|
RESET MASTER;
|
||||||
|
*** Start Slave ***
|
||||||
|
START SLAVE;
|
||||||
|
*** Master Data Insert ***
|
||||||
|
set @b1 = 'b1b1b1b1';
|
||||||
|
set @b1 = concat(@b1,@b1);
|
||||||
|
INSERT INTO t9 () VALUES(1,@b1,'Kyle'),(2,@b1,'JOE'),(3,@b1,'QA');
|
||||||
|
SHOW SLAVE STATUS;
|
||||||
|
Slave_IO_State #
|
||||||
|
Master_Host 127.0.0.1
|
||||||
|
Master_User root
|
||||||
|
Master_Port #
|
||||||
|
Connect_Retry 1
|
||||||
|
Master_Log_File master-bin.000001
|
||||||
|
Read_Master_Log_Pos #
|
||||||
|
Relay_Log_File #
|
||||||
|
Relay_Log_Pos #
|
||||||
|
Relay_Master_Log_File master-bin.000001
|
||||||
|
Slave_IO_Running Yes
|
||||||
|
Slave_SQL_Running No
|
||||||
|
Replicate_Do_DB
|
||||||
|
Replicate_Ignore_DB
|
||||||
|
Replicate_Do_Table
|
||||||
|
Replicate_Ignore_Table #
|
||||||
|
Replicate_Wild_Do_Table
|
||||||
|
Replicate_Wild_Ignore_Table
|
||||||
|
Last_Errno 1364
|
||||||
|
Last_Error Could not execute Write_rows event on table test.t9; Field 'e' doesn't have a default value, Error_code: 1364; handler error HA_ERR_ROWS_EVENT_APPLY; the event's master log master-bin.000001, end_log_pos 447
|
||||||
|
Skip_Counter 0
|
||||||
|
Exec_Master_Log_Pos #
|
||||||
|
Relay_Log_Space #
|
||||||
|
Until_Condition None
|
||||||
|
Until_Log_File
|
||||||
|
Until_Log_Pos 0
|
||||||
|
Master_SSL_Allowed No
|
||||||
|
Master_SSL_CA_File
|
||||||
|
Master_SSL_CA_Path
|
||||||
|
Master_SSL_Cert
|
||||||
|
Master_SSL_Cipher
|
||||||
|
Master_SSL_Key
|
||||||
|
Seconds_Behind_Master #
|
||||||
|
Master_SSL_Verify_Server_Cert No
|
||||||
|
Last_IO_Errno #
|
||||||
|
Last_IO_Error #
|
||||||
|
Last_SQL_Errno 1364
|
||||||
|
Last_SQL_Error Could not execute Write_rows event on table test.t9; Field 'e' doesn't have a default value, Error_code: 1364; handler error HA_ERR_ROWS_EVENT_APPLY; the event's master log master-bin.000001, end_log_pos 447
|
||||||
|
SET GLOBAL SQL_SLAVE_SKIP_COUNTER=2;
|
||||||
|
START SLAVE;
|
||||||
*** Create t10 on slave ***
|
*** Create t10 on slave ***
|
||||||
STOP SLAVE;
|
STOP SLAVE;
|
||||||
RESET SLAVE;
|
RESET SLAVE;
|
||||||
|
@ -137,7 +137,7 @@ static void inline slave_rows_error_report(enum loglevel level, int ha_error,
|
|||||||
" %s, Error_code: %d;", err->msg, err->code);
|
" %s, Error_code: %d;", err->msg, err->code);
|
||||||
}
|
}
|
||||||
|
|
||||||
rli->report(level, thd->net.last_errno,
|
rli->report(level, thd->is_error()? thd->main_da.sql_errno() : 0,
|
||||||
"Could not execute %s event on table %s.%s;"
|
"Could not execute %s event on table %s.%s;"
|
||||||
"%s handler error %s; "
|
"%s handler error %s; "
|
||||||
"the event's master log %s, end_log_pos %lu",
|
"the event's master log %s, end_log_pos %lu",
|
||||||
|
Reference in New Issue
Block a user