Skip to content

Commit

Permalink
Merge branch '10.1' into 10.2
Browse files Browse the repository at this point in the history
But without f4f48e0..f8a800b - fixes for MDEV-12672
and related issues. 10.2 specific fix follows...
  • Loading branch information
vuvova committed Sep 22, 2017
2 parents 3fbd4aa + f8a800b commit f1ce69f
Show file tree
Hide file tree
Showing 90 changed files with 294 additions and 100 deletions.
Empty file removed cmake/CMakeLis.txt
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# and replication is started from it.
#

--source include/master-slave.inc
--source include/have_binlog_format_mixed.inc
--source include/master-slave.inc

--connection slave
# Make sure the slave is stopped while we are messing with master.
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/extra/rpl_tests/rpl_checksum.inc
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
# WL2540 replication events checksum
# Testing configuration parameters

--source include/master-slave.inc
--source include/have_debug.inc
--source include/have_binlog_format_mixed.inc
--source include/master-slave.inc

call mtr.add_suppression('Slave can not handle replication events with the checksum that master is configured to log');
call mtr.add_suppression('Replication event checksum verification failed');
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/extra/rpl_tests/rpl_init_slave_errors.inc
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
# Configuring the Environment
######################################################################
source include/have_debug.inc;
source include/master-slave.inc;
source include/have_log_bin.inc;
source include/master-slave.inc;

connection slave;

Expand Down
2 changes: 1 addition & 1 deletion mysql-test/extra/rpl_tests/rpl_loaddata.test
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
# check if START SLAVE, RESET SLAVE, CHANGE MASTER reset Last_slave_error and
# Last_slave_errno in SHOW SLAVE STATUS (1st and 3rd commands did not: bug 986)

-- source include/master-slave.inc
source include/have_innodb.inc;
source include/master-slave.inc;

--disable_query_log
CALL mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
Expand Down
3 changes: 2 additions & 1 deletion mysql-test/extra/rpl_tests/rpl_packet.inc
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,9 @@
# BUG#55322: SHOW BINLOG EVENTS increases @@SESSION.MAX_ALLOWED_PACKET

# max-out size db name
source include/master-slave.inc;
source include/have_binlog_format_row.inc;
source include/master-slave.inc;

call mtr.add_suppression("Slave I/O: Got a packet bigger than 'slave_max_allowed_packet' bytes, .*error.* 1153");
call mtr.add_suppression("Log entry on master is longer than slave_max_allowed_packet");
let $db= DB_NAME_OF_MAX_LENGTH_AKA_NAME_LEN_64_BYTES_____________________;
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/extra/rpl_tests/rpl_skip_replication.inc
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
# so if it is needed, it should be set explicitly before each call.
#

--source include/master-slave.inc
--source include/have_innodb.inc
--source include/master-slave.inc

connection slave;
# Test that SUPER is required to change @@replicate_events_marked_for_skip.
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/extra/rpl_tests/rpl_stm_relay_ign_space.inc
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
# IO thread does not do it in an uncontrolled manner.

--source include/have_binlog_format_statement.inc
--source include/master-slave.inc
--source include/have_innodb.inc
--source include/master-slave.inc

--disable_query_log
CREATE TABLE t1 (c1 TEXT) engine=InnoDB;
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/extra/rpl_tests/rpl_sync.inc
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@
# Configuring the environment
########################################################################################
--echo =====Configuring the enviroment=======;
--source include/master-slave.inc
--source include/not_embedded.inc
--source include/not_valgrind.inc
--source include/have_debug.inc
--source include/have_innodb.inc
--source include/not_crashrep.inc
--source include/master-slave.inc

call mtr.add_suppression('Attempting backtrace');
call mtr.add_suppression("Recovery from master pos .* and file master-bin.000001");
Expand Down
6 changes: 6 additions & 0 deletions mysql-test/r/insert.result
Original file line number Diff line number Diff line change
Expand Up @@ -745,3 +745,9 @@ f1 f2
drop view v1;
drop table t1;
SET @@sql_mode= @save_mode;
CREATE TABLE t1 (f INT);
CREATE VIEW v1 AS SELECT * FROM t1 WHERE f <=> 'foo' WITH CHECK OPTION;
REPLACE INTO v1 SET f = NULL;
ERROR 22007: Truncated incorrect DOUBLE value: 'foo'
DROP VIEW v1;
DROP TABLE t1;
45 changes: 45 additions & 0 deletions mysql-test/r/old-mode.result
Original file line number Diff line number Diff line change
Expand Up @@ -127,3 +127,48 @@ Warning 1264 Out of range value for column 'a' at row 1
Warning 1264 Out of range value for column 'b' at row 1
DROP TABLE t1;
SET @@global.mysql56_temporal_format=DEFAULT;
set time_zone='Europe/Moscow';
set global mysql56_temporal_format=false;
create table t1 (a timestamp);
set timestamp=1288477526;
insert t1 values (null);
set timestamp=1288481126;
insert t1 values (null);
select a, unix_timestamp(a) from t1;
a unix_timestamp(a)
2010-10-31 02:25:26 1288477526
2010-10-31 02:25:26 1288481126
set global mysql56_temporal_format=true;
select a, unix_timestamp(a) from t1;
a unix_timestamp(a)
2010-10-31 02:25:26 1288477526
2010-10-31 02:25:26 1288481126
alter table t1 modify a timestamp;
select a, unix_timestamp(a) from t1;
a unix_timestamp(a)
2010-10-31 02:25:26 1288477526
2010-10-31 02:25:26 1288481126
drop table t1;
set global mysql56_temporal_format=false;
create table t1 (a timestamp);
set timestamp=1288477526;
insert t1 values (null);
set timestamp=1288481126;
insert t1 values (null);
select a, unix_timestamp(a) from t1;
a unix_timestamp(a)
2010-10-31 02:25:26 1288477526
2010-10-31 02:25:26 1288481126
set global mysql56_temporal_format=true;
select a, unix_timestamp(a) from t1;
a unix_timestamp(a)
2010-10-31 02:25:26 1288477526
2010-10-31 02:25:26 1288481126
create table t2 (a timestamp);
insert t2 select a from t1;
select a, unix_timestamp(a) from t2;
a unix_timestamp(a)
2010-10-31 02:25:26 1288477526
2010-10-31 02:25:26 1288481126
drop table t1, t2;
set time_zone=DEFAULT;
2 changes: 1 addition & 1 deletion mysql-test/suite/engines/funcs/t/rpl_insert.test
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
--echo # Bug#20821: INSERT DELAYED fails to write some rows to binlog
--echo #

--source include/master-slave.inc
--source include/not_embedded.inc
--source include/not_windows.inc
--source include/master-slave.inc

--disable_warnings
CREATE SCHEMA IF NOT EXISTS mysqlslap;
Expand Down
1 change: 1 addition & 0 deletions mysql-test/suite/innodb/t/innodb-index-online.test
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
--source include/innodb_page_size_small.inc
--source include/innodb_encrypt_log.inc
--source include/have_debug.inc
--source include/have_debug_sync.inc

let $innodb_metrics_select=
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/parts/t/rpl_partition.test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
--source include/have_partition.inc
--source include/have_innodb.inc
--source include/master-slave.inc
--source include/big_test.inc
--source include/master-slave.inc

--vertical_results

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--source include/master-slave.inc
--source include/have_binlog_format_mixed.inc
--source include/master-slave.inc

--enable_connect_log

Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
include/master-slave.inc
[connection master]
connection slave;
set global time_zone='Europe/Moscow';
set time_zone='UTC';
stop slave;
start slave;
connection master;
set global mysql56_temporal_format=false;
set global time_zone='Europe/Moscow';
set time_zone='UTC';
create table t1 (pk int primary key, t timestamp not null);
set timestamp = 1288477526;
insert into t1 values (1,null);
set timestamp = 1288481126;
insert into t1 values (2,null);
connection slave;
select pk, t, unix_timestamp(t) from t1;
pk t unix_timestamp(t)
1 2010-10-30 22:25:26 1288477526
2 2010-10-30 23:25:26 1288481126
set time_zone=default;
select pk, t, unix_timestamp(t) from t1;
pk t unix_timestamp(t)
1 2010-10-31 02:25:26 1288477526
2 2010-10-31 02:25:26 1288481126
set global time_zone=default;
connection master;
drop table t1;
set global time_zone=default;
set global mysql56_temporal_format=default;
include/rpl_end.inc
2 changes: 1 addition & 1 deletion mysql-test/suite/rpl/t/rpl_alter_extra_persistent.test
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
--source include/master-slave.inc
--source include/have_binlog_format_row.inc
--source include/master-slave.inc

--enable_connect_log
--connection master
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/rpl/t/rpl_auto_increment_bug45679.test
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
# is replication unsafe.
#

source include/master-slave.inc;
source include/have_binlog_format_mixed.inc;
source include/have_innodb.inc;
source include/master-slave.inc;

call mtr.add_suppression('Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT.');

Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/rpl/t/rpl_begin_commit_rollback.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
source include/master-slave.inc;
source include/have_innodb.inc;
source include/have_binlog_format_statement.inc;
source include/master-slave.inc;

connection slave;
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/rpl/t/rpl_blackhole.test
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@
# primary key lookup), and index/key with multiple matches (forcing an
# index search).

source include/master-slave.inc;
source include/have_blackhole.inc;
source include/master-slave.inc;

call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");

Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/rpl/t/rpl_concurrency_error.test
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@
# log, the error is ignored and only the non-transactional tables are changed.
###############################################################################

--source include/master-slave.inc
--source include/have_innodb.inc
--source include/have_binlog_format_statement.inc
--source include/master-slave.inc

call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");

Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/rpl/t/rpl_conditional_comments.test
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@
# will be binlogged as
# 'INSERT INTO t1 VALUES (1) /*!10000, (2)*/ /* 99999 ,(3)*/'.
###############################################################################
source include/master-slave.inc;
source include/have_binlog_format_statement.inc;
source include/master-slave.inc;

CREATE TABLE t1(c1 INT);
source include/show_binlog_events.inc;
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/rpl/t/rpl_empty_master_host.test
Original file line number Diff line number Diff line change
Expand Up @@ -16,8 +16,8 @@
# along the way if error/no error is thrown and/or if replication starts
# working when expected.

--source include/master-slave.inc
--source include/have_binlog_format_mixed.inc
--source include/master-slave.inc

connection slave;
STOP SLAVE;
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/rpl/t/rpl_extra_col_master_innodb.test
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
# Purpose: To test having extra columns on the master WL#3915
#############################################################
-- source include/have_binlog_format_row.inc
-- source include/master-slave.inc
-- source include/have_innodb.inc
-- source include/master-slave.inc

let $engine_type = 'InnoDB';
--source extra/rpl_tests/rpl_extra_col_master.test
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/rpl/t/rpl_flush_logs.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# works fine.
#

--source include/master-slave.inc
--source include/have_binlog_format_statement.inc
--source include/master-slave.inc
connection master;

# Test 'flush error logs' statement.
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/rpl/t/rpl_geometry.test
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
source include/master-slave.inc;
source include/have_binlog_format_row.inc;
source include/master-slave.inc;

#
# Bug#48776, Bug#43784
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
# Finish the following tests by calling its common test script:
# extra/rpl_tests/rpl_get_master_version_and_clock.test.

source include/master-slave.inc;
source include/have_debug.inc;
source include/have_debug_sync.inc;
source include/master-slave.inc;

#
# The test is not supposed to have any binglog affairs.
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/rpl/t/rpl_grant.test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Tests of grants and users

source include/master-slave.inc;
source include/not_embedded.inc;
source include/master-slave.inc;

connection master;

Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/rpl/t/rpl_gtid_mdev4484.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--source include/master-slave.inc
--source include/have_innodb.inc
--source include/have_debug.inc
--source include/master-slave.inc

CREATE TABLE t1 (i int) ENGINE=InnoDB;

Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/rpl/t/rpl_heartbeat_debug.test
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Testing master to slave heartbeat protocol, test cases that need debug build.

--source include/master-slave.inc
--source include/have_debug.inc
--source include/master-slave.inc

connection slave;
--source include/stop_slave.inc
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/rpl/t/rpl_innodb_bug68220.test
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--source include/have_innodb.inc
--source include/master-slave.inc
--source include/have_binlog_format_row.inc
--source include/master-slave.inc

#
# Bug#68220: innodb_rows_updated is misleading on slave when *info_repository=TABLE
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/rpl/t/rpl_insert.test
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
--echo # Bug#20821: INSERT DELAYED fails to write some rows to binlog
--echo #

--source include/master-slave.inc
--source include/not_embedded.inc
--source include/not_windows.inc
--source include/master-slave.inc

disable_query_log;
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/rpl/t/rpl_invoked_features.test
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
# Features for Replication.
#########################################

--source include/master-slave.inc
--source include/have_innodb.inc
--source include/master-slave.inc

disable_query_log;
call mtr.add_suppression("Unsafe statement written to the binary log using statement format since BINLOG_FORMAT = STATEMENT");
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/rpl/t/rpl_loaddata_symlink.test
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
# if the path of the load data file is a symbolic link.
#
--source include/not_windows.inc
--source include/master-slave.inc
--source include/have_binlog_format_statement.inc
--source include/master-slave.inc

create table t1(a int not null auto_increment, b int, primary key(a) );
load data infile '../../std_data/rpl_loaddata.dat' into table t1;
Expand Down
2 changes: 1 addition & 1 deletion mysql-test/suite/rpl/t/rpl_mariadb_slave_capability.test
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
--source include/master-slave.inc
--source include/have_debug.inc
--source include/have_debug_sync.inc
--source include/have_binlog_format_row.inc
--source include/have_innodb.inc
--source include/master-slave.inc

connection master;

Expand Down
Loading

0 comments on commit f1ce69f

Please sign in to comment.