Debian Codegraph @

mysql-test/suite/ndb/t/ndb_high_api_node_id.test

raw
1 --source include/have_ndb.inc
2 --source include/have_debug.inc
3
4 --let $unsubscribe_message= Ignoring unsubscribe from node 256. The maximum supported node ID is 255
5 --let $subscribe_message= Ignoring subscribe from node 256. The maximum supported node ID is 255
6 --eval CALL mtr.add_suppression("$unsubscribe_message")
7 --eval CALL mtr.add_suppression("$subscribe_message")
8
9 SET @save_debug= @@GLOBAL.debug;
10 SET @@GLOBAL.debug="+d,ndb_test_high_api_node_id";
11
12 # The following dump will cause data nodes to send an unsubscribe/subscribe
13 # event of API node 16 to the other API nodes. By setting
14 # 'ndb_test_high_api_node_id', together with handling of the event for node 16,
15 # the following will be tested:
16 # - unsubscribe of an API node with ID higher than the maximum supported by
17 # cluster;
18 # - subscribe of an API node with ID higher than the highest API node ID defined
19 # in configuration;
20 # - subscribe of an API node with ID higher than the maximum supported by
21 # cluster.
22 exec $NDB_MGM -e "ALL DUMP 900 16";
23
24 # Wait for the last expected error in the log.
25 --let $grep_file= $MYSQLTEST_VARDIR/log/mysqld.1.1.err
26 --let $grep_pattern= $subscribe_message
27 --let $wait_timeout= 60
28 --let $skip_first_x_occurrences= 1
29 --source include/wait_for_pattern_in_file.inc
30
31 SET @@GLOBAL.debug = @save_debug;
32
33 --let $assert_text= Unsubscribe error found
34 --let $assert_select= $unsubscribe_message
35 --let $assert_file= $MYSQLTEST_VARDIR/log/mysqld.1.1.err
36 --let $assert_count_condition= >=2
37 --source include/assert_grep.inc
38
39 --let $assert_text= Subscribe error found
40 --let $assert_select= $subscribe_message
41 --let $assert_file= $MYSQLTEST_VARDIR/log/mysqld.1.1.err
42 --let $assert_count_condition= >=2
43 --source include/assert_grep.inc