polardbxengine/mysql-test/suite/group_replication/r/gr_xplugin_basic_dml.result

216 lines
4.1 KiB
Plaintext

include/group_replication.inc [rpl_server_count=3]
Warnings:
Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
Note #### Storing MySQL user name or password information in the master info repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START SLAVE; see the 'START SLAVE Syntax' in the MySQL Manual for more information.
[connection server1]
[connection server1]
[connection server2]
[connection server3]
Starting GR on server 1
RUN SET GLOBAL GROUP_REPLICATION_GROUP_NAME = 'aaaaaaaa-dddd-aaaa-aaaa-aaaaaaaaaaaa'
0 rows affected
RUN SET GLOBAL GROUP_REPLICATION_BOOTSTRAP_GROUP=1
0 rows affected
RUN START GROUP_REPLICATION
0 rows affected
RUN SET GLOBAL GROUP_REPLICATION_BOOTSTRAP_GROUP=0
0 rows affected
Mysqlx.Ok {
msg: "bye!"
}
ok
Starting GR on server 2
RUN SET GLOBAL GROUP_REPLICATION_GROUP_NAME = 'aaaaaaaa-dddd-aaaa-aaaa-aaaaaaaaaaaa'
0 rows affected
RUN CHANGE MASTER TO MASTER_USER='root' FOR CHANNEL 'group_replication_recovery'
0 rows affected
RUN START GROUP_REPLICATION
0 rows affected
Mysqlx.Ok {
msg: "bye!"
}
ok
Starting GR on server 3
RUN SET GLOBAL GROUP_REPLICATION_GROUP_NAME = 'aaaaaaaa-dddd-aaaa-aaaa-aaaaaaaaaaaa'
0 rows affected
RUN CHANGE MASTER TO MASTER_USER='root' FOR CHANNEL 'group_replication_recovery'
0 rows affected
RUN START GROUP_REPLICATION
0 rows affected
Mysqlx.Ok {
msg: "bye!"
}
ok
Waiting for GR members to come online.
RUN USE test
0 rows affected
RUN CREATE TABLE T1 (C1 INT PRIMARY KEY, C2 INT )
0 rows affected
RUN INSERT INTO T1 VALUES (1,12)
1 rows affected
RUN INSERT INTO T1 VALUES (2,1234)
1 rows affected
RUN INSERT INTO T1 VALUES (3,98765)
1 rows affected
RUN UPDATE T1 SET C2 = C2 - 98765
3 rows affected
Rows matched: 3 Changed: 3 Warnings: 0
RUN DELETE FROM T1 WHERE C2 = 0
1 rows affected
Mysqlx.Ok {
msg: "bye!"
}
ok
include/rpl_sync.inc
RUN USE test
0 rows affected
RUN CREATE TABLE T2 (C1 CHAR(20) PRIMARY KEY, C2 INT )
0 rows affected
RUN INSERT INTO T2 VALUES ('ABC',23)
1 rows affected
RUN UPDATE T2 SET C2 = C2 + 27
1 rows affected
Rows matched: 1 Changed: 1 Warnings: 0
RUN INSERT INTO T1 VALUES (4,34)
1 rows affected
RUN INSERT INTO T2 VALUES ('ABCDEF',23)
1 rows affected
RUN INSERT INTO T1 VALUES (5,1234)
1 rows affected
RUN INSERT INTO T2 VALUES ('ABCDEFGHIJ',23)
1 rows affected
RUN DELETE FROM T2 WHERE C1 = 'ABC'
1 rows affected
Mysqlx.Ok {
msg: "bye!"
}
ok
include/rpl_sync.inc
RUN USE test
0 rows affected
RUN CREATE TABLE T3 (C1 INT PRIMARY KEY, C2 VARCHAR(20) )
0 rows affected
RUN DELETE FROM T1
4 rows affected
RUN INSERT INTO T1 VALUES (1,12345)
1 rows affected
RUN INSERT INTO T3 VALUES (1,'1234')
1 rows affected
RUN INSERT INTO T2 VALUES ('1234',1234)
1 rows affected
RUN INSERT INTO T1 VALUES (7,98765)
1 rows affected
RUN INSERT INTO T2 VALUES ('XYZ',23)
1 rows affected
RUN UPDATE T2 SET C1 = 'ABC' WHERE C1 ='XYZ'
1 rows affected
Rows matched: 1 Changed: 1 Warnings: 0
RUN INSERT INTO T3 VALUES (2,'23')
1 rows affected
RUN INSERT INTO T3 VALUES (3,'234')
1 rows affected
RUN DELETE FROM T3 WHERE C1 > 0
3 rows affected
Mysqlx.Ok {
msg: "bye!"
}
ok
include/rpl_sync.inc
Checking the Value on T1
RUN SELECT C2 FROM test.T1 WHERE C1=1
Checking the row_count on T2
RUN SELECT C2 FROM test.T2 WHERE C1="ABC"
Mysqlx.Ok {
msg: "bye!"
}
ok
RUN USE test
0 rows affected
RUN DROP TABLE T1
0 rows affected
RUN DROP TABLE T2
0 rows affected
RUN DROP TABLE T3
0 rows affected
Mysqlx.Ok {
msg: "bye!"
}
ok
include/rpl_sync.inc
Stopping GR on server 1
RUN STOP GROUP_REPLICATION;
0 rows affected
Mysqlx.Ok {
msg: "bye!"
}
ok
Stopping GR on server 2
RUN STOP GROUP_REPLICATION;
0 rows affected
Mysqlx.Ok {
msg: "bye!"
}
ok
Stopping GR on server 3
RUN STOP GROUP_REPLICATION;
0 rows affected
Mysqlx.Ok {
msg: "bye!"
}
ok
[connection server1]
include/gr_wait_for_member_state.inc
include/assert_and_disable_read_only.inc
[connection server2]
include/gr_wait_for_member_state.inc
include/assert_and_disable_read_only.inc
[connection server3]
include/gr_wait_for_member_state.inc
include/assert_and_disable_read_only.inc
include/group_replication_end.inc