CURRENT_TEST: rpl.rpl_mdev6386
|
160421 4:50:57 [Note] /usr/sbin/mysqld (mysqld 10.0.24-MariaDB-1~jessie) starting as process 32343 ...
|
160421 4:50:57 [Note] Plugin 'XTRADB_READ_VIEW' is disabled.
|
160421 4:50:57 [Note] Plugin 'XTRADB_INTERNAL_HASH_TABLES' is disabled.
|
160421 4:50:57 [Note] Plugin 'XTRADB_RSEG' is disabled.
|
160421 4:50:57 [Note] Plugin 'FEDERATED' is disabled.
|
160421 4:50:57 [Note] Plugin 'BLACKHOLE' is disabled.
|
160421 4:50:57 [Note] Plugin 'ARCHIVE' is disabled.
|
160421 4:50:57 [Note] Plugin 'FEEDBACK' is disabled.
|
160421 4:50:57 [Note] Plugin 'partition' is disabled.
|
160421 4:50:57 [Note] InnoDB: Using mutexes to ref count buffer pool pages
|
160421 4:50:57 [Note] InnoDB: The InnoDB memory heap is disabled
|
160421 4:50:57 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
|
160421 4:50:57 [Note] InnoDB: Memory barrier is not used
|
160421 4:50:57 [Note] InnoDB: Compressed tables use zlib 1.2.8
|
160421 4:50:57 [Note] InnoDB: Using Linux native AIO
|
160421 4:50:57 [Note] InnoDB: Not using CPU crc32 instructions
|
160421 4:50:57 [Note] InnoDB: Initializing buffer pool, size = 8.0M
|
160421 4:50:57 [Note] InnoDB: Completed initialization of buffer pool
|
160421 4:50:57 [Note] InnoDB: Highest supported file format is Barracuda.
|
160421 4:50:57 [Note] InnoDB: 128 rollback segment(s) are active.
|
160421 4:50:57 [Note] InnoDB: Waiting for purge to start
|
160421 4:50:57 [Note] InnoDB: 5.6.29 started; log sequence number 1629415
|
160421 4:50:57 [Note] Plugin 'INNODB_LOCK_WAITS' is disabled.
|
160421 4:50:57 [Note] Plugin 'INNODB_CMP_RESET' is disabled.
|
160421 4:50:57 [Note] Plugin 'INNODB_CMPMEM_RESET' is disabled.
|
160421 4:50:57 [Note] Plugin 'INNODB_CMP_PER_INDEX_RESET' is disabled.
|
160421 4:50:57 [Note] Plugin 'INNODB_FT_DEFAULT_STOPWORD' is disabled.
|
160421 4:50:57 [Note] Plugin 'INNODB_FT_DELETED' is disabled.
|
160421 4:50:57 [Note] Plugin 'INNODB_FT_BEING_DELETED' is disabled.
|
160421 4:50:57 [Note] Plugin 'INNODB_FT_CONFIG' is disabled.
|
160421 4:50:57 [Note] Plugin 'INNODB_FT_INDEX_CACHE' is disabled.
|
160421 4:50:57 [Note] Plugin 'INNODB_FT_INDEX_TABLE' is disabled.
|
160421 4:50:57 [Note] Plugin 'INNODB_SYS_TABLESTATS' is disabled.
|
160421 4:50:57 [Note] Plugin 'INNODB_SYS_INDEXES' is disabled.
|
160421 4:50:57 [Note] Plugin 'INNODB_SYS_COLUMNS' is disabled.
|
160421 4:50:57 [Note] Plugin 'INNODB_SYS_FIELDS' is disabled.
|
160421 4:50:57 [Note] Plugin 'INNODB_SYS_TABLESPACES' is disabled.
|
160421 4:50:57 [Note] Plugin 'INNODB_SYS_DATAFILES' is disabled.
|
160421 4:50:57 [Warning] /usr/sbin/mysqld: unknown variable 'loose-feedback-debug-startup-interval=20'
|
160421 4:50:57 [Warning] /usr/sbin/mysqld: unknown variable 'loose-feedback-debug-first-interval=60'
|
160421 4:50:57 [Warning] /usr/sbin/mysqld: unknown variable 'loose-feedback-debug-interval=60'
|
160421 4:50:57 [Warning] /usr/sbin/mysqld: unknown option '--loose-skip-plugin-innodb-changed-pages'
|
160421 4:50:57 [Warning] /usr/sbin/mysqld: unknown variable 'loose-debug-sync-timeout=300'
|
160421 4:50:57 [Note] Server socket created on IP: '127.0.0.1'.
|
160421 4:50:57 [Note] /usr/sbin/mysqld: ready for connections.
|
Version: '10.0.24-MariaDB-1~jessie' socket: '/dev/shm/var/tmp/4/mysqld.2.sock' port: 16041 mariadb.org binary distribution
|
160421 4:50:58 [Note] 'CHANGE MASTER TO executed'. Previous state master_host='', master_port='3306', master_log_file='', master_log_pos='4'. New state master_host='127.0.0.1', master_port='16040', master_log_file='master-bin.000001', master_log_pos='4'.
|
160421 4:50:58 [Note] Slave SQL thread initialized, starting replication in log 'master-bin.000001' at position 4, relay log './slave-relay-bin.000001' position: 4
|
160421 4:50:58 [Note] Slave I/O thread: connected to master 'root@127.0.0.1:16040',replication started in log 'master-bin.000001' at position 4
|
160421 4:50:58 [Note] Error reading relay log event: slave SQL thread was killed
|
160421 4:50:58 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
|
160421 4:50:58 [Note] Slave I/O thread exiting, read up to log 'master-bin.000002', position 524
|
160421 4:50:58 [Note] 'CHANGE MASTER TO executed'. Previous state master_host='127.0.0.1', master_port='16040', master_log_file='master-bin.000002', master_log_pos='524'. New state master_host='127.0.0.1', master_port='16040', master_log_file='master-bin.000002', master_log_pos='524'.
|
160421 4:50:58 [Note] Previous Using_Gtid=No. New Using_Gtid=Current_Pos
|
160421 4:50:58 [Note] Slave I/O thread: connected to master 'root@127.0.0.1:16040',replication starts at GTID position '0-1-2'
|
160421 4:50:58 [Note] Slave SQL thread initialized, starting replication in log 'master-bin.000002' at position 524, relay log './slave-relay-bin.000001' position: 4; GTID position '0-1-2'
|
160421 4:50:58 [ERROR] Slave SQL: Could not execute Write_rows_v1 event on table test.t1; Duplicate entry '1' for key 'PRIMARY', Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY; the event's master log master-bin.000002, end_log_pos 678, Gtid 0-1-3, Internal MariaDB error code: 1062
|
160421 4:50:58 [Warning] Slave: Duplicate entry '1' for key 'PRIMARY' Error_code: 1062
|
160421 4:50:58 [ERROR] Error running query, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with "SLAVE START". We stopped at log 'master-bin.000002' position 524; GTID position '0-1-2'
|
160421 4:50:58 [Note] Slave SQL thread exiting, replication stopped in log 'master-bin.000002' at position 524; GTID position '0-1-2'
|
160421 4:50:58 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
|
160421 4:50:58 [Note] Slave I/O thread exiting, read up to log 'master-bin.000002', position 874; GTID position 0-1-4
|
160421 4:50:58 [Note] Slave I/O thread: connected to master 'root@127.0.0.1:16040',replication starts at GTID position '0-1-2'
|
160421 4:50:58 [Note] Slave SQL thread initialized, starting replication in log 'master-bin.000002' at position 524, relay log './slave-relay-bin.000001' position: 4; GTID position '0-1-2'
|
160421 4:50:58 [Note] Error reading relay log event: slave SQL thread was killed
|
160421 4:50:58 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
|
160421 4:50:58 [Note] Slave I/O thread exiting, read up to log 'master-bin.000002', position 1016; GTID position 0-1-5
|
160421 4:50:58 [Note] Slave I/O thread: connected to master 'root@127.0.0.1:16040',replication starts at GTID position '0-1-4'
|
160421 4:50:58 [Note] Slave SQL thread initialized, starting replication in log 'master-bin.000002' at position 874, relay log './slave-relay-bin.000001' position: 4; GTID position '0-1-4'
|
160421 4:50:58 [Note] Error reading relay log event: slave SQL thread was killed
|
160421 4:50:58 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
|
160421 4:50:58 [Note] Slave I/O thread exiting, read up to log 'master-bin.000002', position 1016; GTID position 0-1-5
|
160421 4:50:58 [Note] 'CHANGE MASTER TO executed'. Previous state master_host='127.0.0.1', master_port='16040', master_log_file='master-bin.000002', master_log_pos='1016'. New state master_host='127.0.0.1', master_port='16040', master_log_file='', master_log_pos='1016'.
|
160421 4:50:58 [Note] Previous Using_Gtid=Current_Pos. New Using_Gtid=No
|
Here is the occurrence where we still have logs present:
http://buildbot.askmonty.org/buildbot/builders/kvm-deb-jessie-amd64/builds/779/steps/test_4/logs/stdio
No dependency on previous tests, both master and slave were restarted before this test.
Nothing obvious in the slave error log that would show any difference comparing to a normal run. The fact that at the end it restarts from 0-1-4 in one run and from 0-1-5 in another shouldn't matter, it happens after the point where the failure occurs, because there is no synchronization after final DROP TABLE (event 0-1-5).
slave error log, failed run
CURRENT_TEST: rpl.rpl_mdev6386
160421 4:50:57 [Note] /usr/sbin/mysqld (mysqld 10.0.24-MariaDB-1~jessie) starting as process 32343 ...
160421 4:50:57 [Note] Plugin 'XTRADB_READ_VIEW' is disabled.
160421 4:50:57 [Note] Plugin 'XTRADB_INTERNAL_HASH_TABLES' is disabled.
160421 4:50:57 [Note] Plugin 'XTRADB_RSEG' is disabled.
160421 4:50:57 [Note] Plugin 'FEDERATED' is disabled.
160421 4:50:57 [Note] Plugin 'BLACKHOLE' is disabled.
160421 4:50:57 [Note] Plugin 'ARCHIVE' is disabled.
160421 4:50:57 [Note] Plugin 'FEEDBACK' is disabled.
160421 4:50:57 [Note] Plugin 'partition' is disabled.
160421 4:50:57 [Note] InnoDB: Using mutexes to ref count buffer pool pages
160421 4:50:57 [Note] InnoDB: The InnoDB memory heap is disabled
160421 4:50:57 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
160421 4:50:57 [Note] InnoDB: Memory barrier is not used
160421 4:50:57 [Note] InnoDB: Compressed tables use zlib 1.2.8
160421 4:50:57 [Note] InnoDB: Using Linux native AIO
160421 4:50:57 [Note] InnoDB: Not using CPU crc32 instructions
160421 4:50:57 [Note] InnoDB: Initializing buffer pool, size = 8.0M
160421 4:50:57 [Note] InnoDB: Completed initialization of buffer pool
160421 4:50:57 [Note] InnoDB: Highest supported file format is Barracuda.
160421 4:50:57 [Note] InnoDB: 128 rollback segment(s) are active.
160421 4:50:57 [Note] InnoDB: Waiting for purge to start
160421 4:50:57 [Note] InnoDB: 5.6.29 started; log sequence number 1629415
160421 4:50:57 [Note] Plugin 'INNODB_LOCK_WAITS' is disabled.
160421 4:50:57 [Note] Plugin 'INNODB_CMP_RESET' is disabled.
160421 4:50:57 [Note] Plugin 'INNODB_CMPMEM_RESET' is disabled.
160421 4:50:57 [Note] Plugin 'INNODB_CMP_PER_INDEX_RESET' is disabled.
160421 4:50:57 [Note] Plugin 'INNODB_FT_DEFAULT_STOPWORD' is disabled.
160421 4:50:57 [Note] Plugin 'INNODB_FT_DELETED' is disabled.
160421 4:50:57 [Note] Plugin 'INNODB_FT_BEING_DELETED' is disabled.
160421 4:50:57 [Note] Plugin 'INNODB_FT_CONFIG' is disabled.
160421 4:50:57 [Note] Plugin 'INNODB_FT_INDEX_CACHE' is disabled.
160421 4:50:57 [Note] Plugin 'INNODB_FT_INDEX_TABLE' is disabled.
160421 4:50:57 [Note] Plugin 'INNODB_SYS_TABLESTATS' is disabled.
160421 4:50:57 [Note] Plugin 'INNODB_SYS_INDEXES' is disabled.
160421 4:50:57 [Note] Plugin 'INNODB_SYS_COLUMNS' is disabled.
160421 4:50:57 [Note] Plugin 'INNODB_SYS_FIELDS' is disabled.
160421 4:50:57 [Note] Plugin 'INNODB_SYS_TABLESPACES' is disabled.
160421 4:50:57 [Note] Plugin 'INNODB_SYS_DATAFILES' is disabled.
160421 4:50:57 [Warning] /usr/sbin/mysqld: unknown variable 'loose-feedback-debug-startup-interval=20'
160421 4:50:57 [Warning] /usr/sbin/mysqld: unknown variable 'loose-feedback-debug-first-interval=60'
160421 4:50:57 [Warning] /usr/sbin/mysqld: unknown variable 'loose-feedback-debug-interval=60'
160421 4:50:57 [Warning] /usr/sbin/mysqld: unknown option '--loose-skip-plugin-innodb-changed-pages'
160421 4:50:57 [Warning] /usr/sbin/mysqld: unknown variable 'loose-debug-sync-timeout=300'
160421 4:50:57 [Note] Server socket created on IP: '127.0.0.1'.
160421 4:50:57 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.0.24-MariaDB-1~jessie' socket: '/dev/shm/var/tmp/4/mysqld.2.sock' port: 16041 mariadb.org binary distribution
160421 4:50:58 [Note] 'CHANGE MASTER TO executed'. Previous state master_host='', master_port='3306', master_log_file='', master_log_pos='4'. New state master_host='127.0.0.1', master_port='16040', master_log_file='master-bin.000001', master_log_pos='4'.
160421 4:50:58 [Note] Slave SQL thread initialized, starting replication in log 'master-bin.000001' at position 4, relay log './slave-relay-bin.000001' position: 4
160421 4:50:58 [Note] Slave I/O thread: connected to master 'root@127.0.0.1:16040',replication started in log 'master-bin.000001' at position 4
160421 4:50:58 [Note] Error reading relay log event: slave SQL thread was killed
160421 4:50:58 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
160421 4:50:58 [Note] Slave I/O thread exiting, read up to log 'master-bin.000002', position 524
160421 4:50:58 [Note] 'CHANGE MASTER TO executed'. Previous state master_host='127.0.0.1', master_port='16040', master_log_file='master-bin.000002', master_log_pos='524'. New state master_host='127.0.0.1', master_port='16040', master_log_file='master-bin.000002', master_log_pos='524'.
160421 4:50:58 [Note] Previous Using_Gtid=No. New Using_Gtid=Current_Pos
160421 4:50:58 [Note] Slave I/O thread: connected to master 'root@127.0.0.1:16040',replication starts at GTID position '0-1-2'
160421 4:50:58 [Note] Slave SQL thread initialized, starting replication in log 'master-bin.000002' at position 524, relay log './slave-relay-bin.000001' position: 4; GTID position '0-1-2'
160421 4:50:58 [ERROR] Slave SQL: Could not execute Write_rows_v1 event on table test.t1; Duplicate entry '1' for key 'PRIMARY', Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY; the event's master log master-bin.000002, end_log_pos 678, Gtid 0-1-3, Internal MariaDB error code: 1062
160421 4:50:58 [Warning] Slave: Duplicate entry '1' for key 'PRIMARY' Error_code: 1062
160421 4:50:58 [ERROR] Error running query, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with "SLAVE START". We stopped at log 'master-bin.000002' position 524; GTID position '0-1-2'
160421 4:50:58 [Note] Slave SQL thread exiting, replication stopped in log 'master-bin.000002' at position 524; GTID position '0-1-2'
160421 4:50:58 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
160421 4:50:58 [Note] Slave I/O thread exiting, read up to log 'master-bin.000002', position 874; GTID position 0-1-4
160421 4:50:58 [Note] Slave I/O thread: connected to master 'root@127.0.0.1:16040',replication starts at GTID position '0-1-2'
160421 4:50:58 [Note] Slave SQL thread initialized, starting replication in log 'master-bin.000002' at position 524, relay log './slave-relay-bin.000001' position: 4; GTID position '0-1-2'
160421 4:50:58 [Note] Error reading relay log event: slave SQL thread was killed
160421 4:50:58 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
160421 4:50:58 [Note] Slave I/O thread exiting, read up to log 'master-bin.000002', position 1016; GTID position 0-1-5
160421 4:50:58 [Note] Slave I/O thread: connected to master 'root@127.0.0.1:16040',replication starts at GTID position '0-1-4'
160421 4:50:58 [Note] Slave SQL thread initialized, starting replication in log 'master-bin.000002' at position 874, relay log './slave-relay-bin.000001' position: 4; GTID position '0-1-4'
160421 4:50:58 [Note] Error reading relay log event: slave SQL thread was killed
160421 4:50:58 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
160421 4:50:58 [Note] Slave I/O thread exiting, read up to log 'master-bin.000002', position 1016; GTID position 0-1-5
160421 4:50:58 [Note] 'CHANGE MASTER TO executed'. Previous state master_host='127.0.0.1', master_port='16040', master_log_file='master-bin.000002', master_log_pos='1016'. New state master_host='127.0.0.1', master_port='16040', master_log_file='', master_log_pos='1016'.
160421 4:50:58 [Note] Previous Using_Gtid=Current_Pos. New Using_Gtid=No
slave error log, normal run
CURRENT_TEST: rpl.rpl_mdev6386
160421 4:50:59 [Note] /usr/sbin/mysqld (mysqld 10.0.24-MariaDB-1~jessie) starting as process 32615 ...
160421 4:50:59 [Note] Plugin 'XTRADB_READ_VIEW' is disabled.
160421 4:50:59 [Note] Plugin 'XTRADB_INTERNAL_HASH_TABLES' is disabled.
160421 4:50:59 [Note] Plugin 'XTRADB_RSEG' is disabled.
160421 4:50:59 [Note] Plugin 'FEDERATED' is disabled.
160421 4:50:59 [Note] Plugin 'BLACKHOLE' is disabled.
160421 4:50:59 [Note] Plugin 'ARCHIVE' is disabled.
160421 4:50:59 [Note] Plugin 'FEEDBACK' is disabled.
160421 4:50:59 [Note] Plugin 'partition' is disabled.
160421 4:50:59 [Note] InnoDB: Using mutexes to ref count buffer pool pages
160421 4:50:59 [Note] InnoDB: The InnoDB memory heap is disabled
160421 4:50:59 [Note] InnoDB: Mutexes and rw_locks use GCC atomic builtins
160421 4:50:59 [Note] InnoDB: Memory barrier is not used
160421 4:50:59 [Note] InnoDB: Compressed tables use zlib 1.2.8
160421 4:50:59 [Note] InnoDB: Using Linux native AIO
160421 4:50:59 [Note] InnoDB: Not using CPU crc32 instructions
160421 4:50:59 [Note] InnoDB: Initializing buffer pool, size = 8.0M
160421 4:50:59 [Note] InnoDB: Completed initialization of buffer pool
160421 4:50:59 [Note] InnoDB: Highest supported file format is Barracuda.
160421 4:50:59 [Note] InnoDB: 128 rollback segment(s) are active.
160421 4:50:59 [Note] InnoDB: Waiting for purge to start
160421 4:50:59 [Note] InnoDB: 5.6.29 started; log sequence number 1629415
160421 4:50:59 [Note] Plugin 'INNODB_LOCK_WAITS' is disabled.
160421 4:50:59 [Note] Plugin 'INNODB_CMP_RESET' is disabled.
160421 4:50:59 [Note] Plugin 'INNODB_CMPMEM_RESET' is disabled.
160421 4:50:59 [Note] Plugin 'INNODB_CMP_PER_INDEX_RESET' is disabled.
160421 4:50:59 [Note] Plugin 'INNODB_FT_DEFAULT_STOPWORD' is disabled.
160421 4:50:59 [Note] Plugin 'INNODB_FT_DELETED' is disabled.
160421 4:50:59 [Note] Plugin 'INNODB_FT_BEING_DELETED' is disabled.
160421 4:50:59 [Note] Plugin 'INNODB_FT_CONFIG' is disabled.
160421 4:50:59 [Note] Plugin 'INNODB_FT_INDEX_CACHE' is disabled.
160421 4:50:59 [Note] Plugin 'INNODB_FT_INDEX_TABLE' is disabled.
160421 4:50:59 [Note] Plugin 'INNODB_SYS_TABLESTATS' is disabled.
160421 4:50:59 [Note] Plugin 'INNODB_SYS_INDEXES' is disabled.
160421 4:50:59 [Note] Plugin 'INNODB_SYS_COLUMNS' is disabled.
160421 4:50:59 [Note] Plugin 'INNODB_SYS_FIELDS' is disabled.
160421 4:50:59 [Note] Plugin 'INNODB_SYS_TABLESPACES' is disabled.
160421 4:50:59 [Note] Plugin 'INNODB_SYS_DATAFILES' is disabled.
160421 4:50:59 [Warning] /usr/sbin/mysqld: unknown variable 'loose-feedback-debug-startup-interval=20'
160421 4:50:59 [Warning] /usr/sbin/mysqld: unknown variable 'loose-feedback-debug-first-interval=60'
160421 4:50:59 [Warning] /usr/sbin/mysqld: unknown variable 'loose-feedback-debug-interval=60'
160421 4:50:59 [Warning] /usr/sbin/mysqld: unknown option '--loose-skip-plugin-innodb-changed-pages'
160421 4:50:59 [Warning] /usr/sbin/mysqld: unknown variable 'loose-debug-sync-timeout=300'
160421 4:50:59 [Note] Server socket created on IP: '127.0.0.1'.
160421 4:50:59 [Note] /usr/sbin/mysqld: ready for connections.
Version: '10.0.24-MariaDB-1~jessie' socket: '/dev/shm/var/tmp/4/mysqld.2.sock' port: 16041 mariadb.org binary distribution
160421 4:51:00 [Note] 'CHANGE MASTER TO executed'. Previous state master_host='', master_port='3306', master_log_file='', master_log_pos='4'. New state master_host='127.0.0.1', master_port='16040', master_log_file='master-bin.000001', master_log_pos='4'.
160421 4:51:00 [Note] Slave SQL thread initialized, starting replication in log 'master-bin.000001' at position 4, relay log './slave-relay-bin.000001' position: 4
160421 4:51:00 [Note] Slave I/O thread: connected to master 'root@127.0.0.1:16040',replication started in log 'master-bin.000001' at position 4
160421 4:51:00 [Note] Slave SQL thread exiting, replication stopped in log 'master-bin.000002' at position 484
160421 4:51:00 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
160421 4:51:00 [Note] Slave I/O thread exiting, read up to log 'master-bin.000002', position 524
160421 4:51:00 [Note] 'CHANGE MASTER TO executed'. Previous state master_host='127.0.0.1', master_port='16040', master_log_file='master-bin.000002', master_log_pos='524'. New state master_host='127.0.0.1', master_port='16040', master_log_file='master-bin.000002', master_log_pos='484'.
160421 4:51:00 [Note] Previous Using_Gtid=No. New Using_Gtid=Current_Pos
160421 4:51:00 [Note] Slave SQL thread initialized, starting replication in log 'master-bin.000002' at position 484, relay log './slave-relay-bin.000001' position: 4; GTID position '0-1-2'
160421 4:51:00 [Note] Slave I/O thread: connected to master 'root@127.0.0.1:16040',replication starts at GTID position '0-1-2'
160421 4:51:00 [ERROR] Slave SQL: Could not execute Write_rows_v1 event on table test.t1; Duplicate entry '1' for key 'PRIMARY', Error_code: 1062; handler error HA_ERR_FOUND_DUPP_KEY; the event's master log master-bin.000002, end_log_pos 678, Gtid 0-1-3, Internal MariaDB error code: 1062
160421 4:51:00 [Warning] Slave: Duplicate entry '1' for key 'PRIMARY' Error_code: 1062
160421 4:51:00 [ERROR] Error running query, slave SQL thread aborted. Fix the problem, and restart the slave SQL thread with "SLAVE START". We stopped at log 'master-bin.000002' position 524; GTID position '0-1-2'
160421 4:51:00 [Note] Error reading relay log event: slave SQL thread was killed
160421 4:51:00 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
160421 4:51:00 [Note] Slave I/O thread exiting, read up to log 'master-bin.000002', position 874; GTID position 0-1-4
160421 4:51:00 [Note] Slave SQL thread initialized, starting replication in log 'master-bin.000002' at position 524, relay log './slave-relay-bin.000001' position: 4; GTID position '0-1-2'
160421 4:51:00 [Note] Slave I/O thread: connected to master 'root@127.0.0.1:16040',replication starts at GTID position '0-1-2'
160421 4:51:00 [Note] Error reading relay log event: slave SQL thread was killed
160421 4:51:00 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
160421 4:51:00 [Note] Slave I/O thread exiting, read up to log 'master-bin.000002', position 1016; GTID position 0-1-5
160421 4:51:00 [Note] Slave SQL thread initialized, starting replication in log 'master-bin.000002' at position 1016, relay log './slave-relay-bin.000001' position: 4; GTID position '0-1-5'
160421 4:51:00 [Note] Slave I/O thread: connected to master 'root@127.0.0.1:16040',replication starts at GTID position '0-1-5'
160421 4:51:01 [Note] Error reading relay log event: slave SQL thread was killed
160421 4:51:01 [ERROR] Error reading packet from server: Lost connection to MySQL server during query ( server_errno=2013)
160421 4:51:01 [Note] Slave I/O thread exiting, read up to log 'master-bin.000002', position 1016; GTID position 0-1-5
160421 4:51:01 [Note] 'CHANGE MASTER TO executed'. Previous state master_host='127.0.0.1', master_port='16040', master_log_file='master-bin.000002', master_log_pos='1016'. New state master_host='127.0.0.1', master_port='16040', master_log_file='', master_log_pos='1016'.
160421 4:51:01 [Note] Previous Using_Gtid=Current_Pos. New Using_Gtid=No