Skip to content

Commit 85fc3de

Browse files
committed
wl#9819 Version 2. Patch #9: mtr test
1 parent 7a12014 commit 85fc3de

File tree

2 files changed

+35
-41
lines changed

2 files changed

+35
-41
lines changed

mysql-test/suite/ndb/r/ndbinfo.result

Lines changed: 31 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1651,58 +1651,53 @@ Field Type Null Key Default Extra
16511651
reporting_node_id int(10) unsigned YES NULL
16521652
node_id int(10) unsigned YES NULL
16531653
node_type int(10) unsigned YES NULL
1654-
host_addr varchar(512) YES NULL
16551654
node_version varchar(512) YES NULL
16561655
process_id int(10) unsigned YES NULL
16571656
angel_process_id int(10) unsigned YES NULL
16581657
process_name varchar(512) YES NULL
1659-
connection_name varchar(512) YES NULL
1660-
application_port int(10) unsigned YES NULL
1658+
service_URI varchar(512) YES NULL
16611659
show create table processes;
16621660
View Create View character_set_client collation_connection
1663-
processes CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY INVOKER VIEW `processes` AS select distinct `ndb$processes`.`node_id` AS `node_id`,(case `ndb$processes`.`node_type` when 0 then 'NDB' when 1 then 'API' when 2 then 'MGM' else NULL end) AS `node_type`,`ndb$processes`.`host_addr` AS `host_addr`,`ndb$processes`.`node_version` AS `node_version`,nullif(`ndb$processes`.`process_id`,0) AS `process_id`,nullif(`ndb$processes`.`angel_process_id`,0) AS `angel_process_id`,`ndb$processes`.`process_name` AS `process_name`,`ndb$processes`.`connection_name` AS `connection_name`,nullif(`ndb$processes`.`application_port`,0) AS `application_port` from `ndb$processes` latin1 latin1_swedish_ci
1661+
processes CREATE ALGORITHM=UNDEFINED DEFINER=`root`@`localhost` SQL SECURITY INVOKER VIEW `processes` AS select distinct `ndb$processes`.`node_id` AS `node_id`,(case `ndb$processes`.`node_type` when 0 then 'NDB' when 1 then 'API' when 2 then 'MGM' else NULL end) AS `node_type`,`ndb$processes`.`node_version` AS `node_version`,nullif(`ndb$processes`.`process_id`,0) AS `process_id`,nullif(`ndb$processes`.`angel_process_id`,0) AS `angel_process_id`,`ndb$processes`.`process_name` AS `process_name`,`ndb$processes`.`service_URI` AS `service_URI` from `ndb$processes` order by `ndb$processes`.`node_id` latin1 latin1_swedish_ci
16641662

1665-
SELECT reporting_node_id, node_id, node_type, process_name, connection_name
1663+
SELECT reporting_node_id, node_id, node_type, process_name
16661664
FROM ndb$processes
16671665
ORDER BY reporting_node_id, node_id;
1668-
reporting_node_id node_id node_type process_name connection_name
1669-
1 1 0 ndbmtd
1670-
1 3 2 ndb_mgmd
1671-
1 16 1 mysqld mysqld --server-id=2
1672-
1 32 1 mysqld mysqld --server-id=2 (connection 2)
1673-
1 48 1 mysqld mysqld --server-id=2 (connection 3)
1674-
1 49 1 mysqld mysqld --server-id=1
1675-
1 63 1 mysqld mysqld --server-id=1 (connection 2)
1676-
1 127 1 mysqld mysqld --server-id=1 (connection 3)
1677-
2 2 0 ndbmtd
1678-
2 3 2 ndb_mgmd
1679-
2 16 1 mysqld mysqld --server-id=2
1680-
2 32 1 mysqld mysqld --server-id=2 (connection 2)
1681-
2 48 1 mysqld mysqld --server-id=2 (connection 3)
1682-
2 49 1 mysqld mysqld --server-id=1
1683-
2 63 1 mysqld mysqld --server-id=1 (connection 2)
1684-
2 127 1 mysqld mysqld --server-id=1 (connection 3)
1666+
reporting_node_id node_id node_type process_name
1667+
1 1 0 ndbmtd
1668+
1 3 2 ndb_mgmd
1669+
1 16 1 mysqld
1670+
1 32 1 mysqld
1671+
1 48 1 mysqld
1672+
1 49 1 mysqld
1673+
1 63 1 mysqld
1674+
1 127 1 mysqld
1675+
2 2 0 ndbmtd
1676+
2 3 2 ndb_mgmd
1677+
2 16 1 mysqld
1678+
2 32 1 mysqld
1679+
2 48 1 mysqld
1680+
2 49 1 mysqld
1681+
2 63 1 mysqld
1682+
2 127 1 mysqld
16851683

16861684
SELECT node_id,
16871685
node_type,
16881686
process_name,
16891687
if(process_id is null, "null", "not_null") as proc_id,
1690-
if(angel_process_id is null, "null", "not_null") as angel_proc_id,
1691-
process_name,
1692-
connection_name,
1693-
if(application_port is null, "null", "not_null") as port
1688+
if(angel_process_id is null, "null", "not_null") as angel_proc_id
16941689
FROM processes
16951690
ORDER BY node_id;
1696-
node_id node_type process_name proc_id angel_proc_id process_name connection_name port
1697-
1 NDB ndbmtd not_null not_null ndbmtd null
1698-
2 NDB ndbmtd not_null not_null ndbmtd null
1699-
3 MGM ndb_mgmd not_null null ndb_mgmd not_null
1700-
16 API mysqld not_null null mysqld mysqld --server-id=2 not_null
1701-
32 API mysqld not_null null mysqld mysqld --server-id=2 (connection 2) not_null
1702-
48 API mysqld not_null null mysqld mysqld --server-id=2 (connection 3) not_null
1703-
49 API mysqld not_null null mysqld mysqld --server-id=1 not_null
1704-
63 API mysqld not_null null mysqld mysqld --server-id=1 (connection 2) not_null
1705-
127 API mysqld not_null null mysqld mysqld --server-id=1 (connection 3) not_null
1691+
node_id node_type process_name proc_id angel_proc_id
1692+
1 NDB ndbmtd not_null not_null
1693+
2 NDB ndbmtd not_null not_null
1694+
3 MGM ndb_mgmd not_null null
1695+
16 API mysqld not_null null
1696+
32 API mysqld not_null null
1697+
48 API mysqld not_null null
1698+
49 API mysqld not_null null
1699+
63 API mysqld not_null null
1700+
127 API mysqld not_null null
17061701

17071702
desc ndb$config_nodes;
17081703
Field Type Null Key Default Extra

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

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -853,6 +853,8 @@ select node_id, concat(config_value / 1024 / 1024, 'M') as DataMemory
853853
#
854854
# wl#9819 ndbinfo.processes
855855
#
856+
# Because port number and host address vary in the test environment,
857+
# we can not test the content of the service_URI column.
856858

857859
# (A) Normative tests of table and view definition
858860
desc ndb$processes;
@@ -863,7 +865,7 @@ show create table processes;
863865
# this test case changes.
864866

865867
# Query the base table
866-
SELECT reporting_node_id, node_id, node_type, process_name, connection_name
868+
SELECT reporting_node_id, node_id, node_type, process_name
867869
FROM ndb$processes
868870
ORDER BY reporting_node_id, node_id;
869871

@@ -872,10 +874,7 @@ SELECT node_id,
872874
node_type,
873875
process_name,
874876
if(process_id is null, "null", "not_null") as proc_id,
875-
if(angel_process_id is null, "null", "not_null") as angel_proc_id,
876-
process_name,
877-
connection_name,
878-
if(application_port is null, "null", "not_null") as port
877+
if(angel_process_id is null, "null", "not_null") as angel_proc_id
879878
FROM processes
880879
ORDER BY node_id;
881880

0 commit comments

Comments
 (0)