Debian Codegraph @

mysql-test/suite/group_replication/r/gr_communication_protocol.result

raw
1 include/group_replication.inc [rpl_server_count=2]
2 Warnings:
3 Note #### Sending passwords in plain text without SSL/TLS is extremely insecure.
4 Note #### Storing MySQL user name or password information in the connection metadata repository is not secure and is therefore not recommended. Please consider using the USER and PASSWORD connection options for START REPLICA; see the 'START REPLICA Syntax' in the MySQL Manual for more information.
5 [connection server1]
6 SET SQL_LOG_BIN=0;
7 CREATE TABLE t1 (i INT, s VARCHAR(16), PRIMARY KEY (i));
8 INSERT INTO t1 VALUES (1, NULL);
9 INSERT INTO t1 VALUES (2, "");
10 INSERT INTO t1 VALUES (3, "5");
11 INSERT INTO t1 VALUES (4, "5.7");
12 INSERT INTO t1 VALUES (5, "5.7.14a");
13 INSERT INTO t1 VALUES (6, "5.7.13");
14 INSERT INTO t1 VALUES (7, "99.99.99");
15 SET SQL_LOG_BIN=1;
16 ###############################################################################
17 # 2. Decrease communication_protocol.
18 [connection server1]
19 SELECT group_replication_set_communication_protocol("5.7.14");
20 group_replication_set_communication_protocol("5.7.14")
21 The operation group_replication_set_communication_protocol completed successfully
22 include/assert.inc [communication_protocol is supposed to be 5.7.14]
23 include/assert.inc [protocol_version (5.7.14) should be 5.7.14]
24 [connection server2]
25 include/assert.inc [communication_protocol is supposed to be 5.7.14]
26 include/assert.inc [protocol_version (5.7.14) should be 5.7.14]
27 ###############################################################################
28 # 3. Increase communication_protocol.
29 [connection server1]
30 SELECT group_replication_set_communication_protocol("8.0.16");
31 group_replication_set_communication_protocol("8.0.16")
32 The operation group_replication_set_communication_protocol completed successfully
33 include/assert.inc [communication_protocol is supposed to be 8.0.16]
34 include/assert.inc [protocol_version (8.0.16) should be 8.0.16]
35 [connection server2]
36 include/assert.inc [communication_protocol is supposed to be 8.0.16]
37 include/assert.inc [protocol_version (8.0.16) should be 8.0.16]
38 ###############################################################################
39 # 4. Confirm invalid calls to group_replication_get_communication_protocol
40 [connection server1]
41 SELECT group_replication_get_communication_protocol(1);
42 ERROR HY000: Can't initialize function 'group_replication_get_communication_protocol'; UDF does not take arguments.
43 SELECT group_replication_get_communication_protocol(1.1);
44 ERROR HY000: Can't initialize function 'group_replication_get_communication_protocol'; UDF does not take arguments.
45 SELECT group_replication_get_communication_protocol("hehe");
46 ERROR HY000: Can't initialize function 'group_replication_get_communication_protocol'; UDF does not take arguments.
47 SELECT group_replication_get_communication_protocol(NULL);
48 ERROR HY000: Can't initialize function 'group_replication_get_communication_protocol'; UDF does not take arguments.
49 ###############################################################################
50 # 5. Confirm invalid calls to group_replication_set_communication_protocol
51 SELECT group_replication_set_communication_protocol();
52 ERROR HY000: Can't initialize function 'group_replication_set_communication_protocol'; UDF takes one version string argument with format major.minor.patch
53 SELECT group_replication_set_communication_protocol(NULL);
54 ERROR HY000: Can't initialize function 'group_replication_set_communication_protocol'; UDF takes one version string argument with format major.minor.patch
55 SELECT group_replication_set_communication_protocol(1);
56 ERROR HY000: Can't initialize function 'group_replication_set_communication_protocol'; UDF takes one version string argument with format major.minor.patch
57 SELECT group_replication_set_communication_protocol(5.7);
58 ERROR HY000: Can't initialize function 'group_replication_set_communication_protocol'; UDF takes one version string argument with format major.minor.patch
59 SELECT group_replication_set_communication_protocol("");
60 ERROR HY000: Can't initialize function 'group_replication_set_communication_protocol'; UDF takes one version string argument with format major.minor.patch
61 SELECT group_replication_set_communication_protocol(" ");
62 ERROR HY000: Can't initialize function 'group_replication_set_communication_protocol'; ' ' is not version string argument with format major.minor.patch
63 SELECT group_replication_set_communication_protocol("5");
64 ERROR HY000: Can't initialize function 'group_replication_set_communication_protocol'; '5' is not version string argument with format major.minor.patch
65 SELECT group_replication_set_communication_protocol("5.7");
66 ERROR HY000: Can't initialize function 'group_replication_set_communication_protocol'; '5.7' is not version string argument with format major.minor.patch
67 SELECT group_replication_set_communication_protocol("5.7.14a");
68 ERROR HY000: Can't initialize function 'group_replication_set_communication_protocol'; '5.7.14a' is not version string argument with format major.minor.patch
69 SELECT group_replication_set_communication_protocol("5.7.13");
70 ERROR HY000: Can't initialize function 'group_replication_set_communication_protocol'; 5.7.13 is not between 5.7.14 and MYSQL_VERSION
71 SELECT group_replication_set_communication_protocol("99.99.99");
72 ERROR HY000: Can't initialize function 'group_replication_set_communication_protocol'; 99.99.99 is not between 5.7.14 and MYSQL_VERSION
73 SELECT group_replication_set_communication_protocol(s) FROM test.t1 WHERE i=1;
74 ERROR HY000: The function 'group_replication_set_communication_protocol' failed. UDF takes one version string argument with format major.minor.patch
75 SELECT group_replication_set_communication_protocol(s) FROM test.t1 WHERE i=2;
76 ERROR HY000: The function 'group_replication_set_communication_protocol' failed. '' is not version string argument with format major.minor.patch
77 SELECT group_replication_set_communication_protocol(s) FROM test.t1 WHERE i=3;
78 ERROR HY000: The function 'group_replication_set_communication_protocol' failed. '5' is not version string argument with format major.minor.patch
79 SELECT group_replication_set_communication_protocol(s) FROM test.t1 WHERE i=4;
80 ERROR HY000: The function 'group_replication_set_communication_protocol' failed. '5.7' is not version string argument with format major.minor.patch
81 SELECT group_replication_set_communication_protocol(s) FROM test.t1 WHERE i=5;
82 ERROR HY000: The function 'group_replication_set_communication_protocol' failed. '5.7.14a' is not version string argument with format major.minor.patch
83 SELECT group_replication_set_communication_protocol(s) FROM test.t1 WHERE i=6;
84 ERROR HY000: The function 'group_replication_set_communication_protocol' failed. 5.7.13 is not between 5.7.14 and MYSQL_VERSION
85 SELECT group_replication_set_communication_protocol(s) FROM test.t1 WHERE i=7;
86 ERROR HY000: The function 'group_replication_set_communication_protocol' failed. 99.99.99 is not between 5.7.14 and MYSQL_VERSION
87 [connection server2]
88 include/stop_group_replication.inc
89 ###############################################################################
90 # 6. Stop GR and try to call UDFs outside of a group
91 [connection server1]
92 SET SQL_LOG_BIN=0;
93 DROP TABLE t1;
94 SET SQL_LOG_BIN=1;
95 include/group_replication_end.inc
96 SELECT group_replication_get_communication_protocol();
97 ERROR HY000: Can't initialize function 'group_replication_get_communication_protocol'; Member must be ONLINE and in the majority partition.
98 SELECT group_replication_set_communication_protocol("5.7.14");
99 ERROR HY000: Can't initialize function 'group_replication_set_communication_protocol'; Member must be ONLINE and in the majority partition.