| 1 |
# WL#6839 - GCS Replication: P_S table to show DBSM stats |
| 2 |
# |
| 3 |
# This test proofs the existence of the replication_group_member_stats table |
| 4 |
# and all its fields. Since the table only returns values if the plugin is |
| 5 |
# loaded, all queries will return "No such row" or "0" |
| 6 |
# |
| 7 |
|
| 8 |
--let $member_id= query_get_value(SELECT Member_Id from performance_schema.replication_group_member_stats, Member_Id, 1) |
| 9 |
--let $assert_text= The value of member_id should not be present |
| 10 |
--let $assert_cond= "$member_id" = "No such row" |
| 11 |
--source include/assert.inc |
| 12 |
|
| 13 |
--let $view_id= query_get_value(SELECT View_Id from performance_schema.replication_group_member_stats, View_Id, 1) |
| 14 |
--let $assert_text= The value of view_id should not be present |
| 15 |
--let $assert_cond= "$View_Id" = "No such row" |
| 16 |
--source include/assert.inc |
| 17 |
|
| 18 |
--let $transaction_in_queue= query_get_value(SELECT Count_Transactions_in_queue from performance_schema.replication_group_member_stats, Count_Transactions_in_queue, 1) |
| 19 |
--let $assert_text= The value of Count_Transactions_in_queue should be 0 |
| 20 |
--let $assert_cond= "$transaction_in_queue" = 0 |
| 21 |
--source include/assert.inc |
| 22 |
|
| 23 |
--let $certified_transactions= query_get_value(SELECT Count_Transactions_checked from performance_schema.replication_group_member_stats, Count_Transactions_checked, 1) |
| 24 |
--let $assert_text= The value of Count_Transactions_checked should be 0 |
| 25 |
--let $assert_cond= "$certified_transactions" = 0 |
| 26 |
--source include/assert.inc |
| 27 |
|
| 28 |
--let $negatively_certified= query_get_value(SELECT Count_conflicts_detected from performance_schema.replication_group_member_stats, Count_conflicts_detected, 1) |
| 29 |
--let $assert_text= The value of Count_conflicts_detected should be 0 |
| 30 |
--let $assert_cond= "$negatively_certified" = 0 |
| 31 |
--source include/assert.inc |
| 32 |
|
| 33 |
--let $certification_db_size= query_get_value(SELECT Count_Transactions_rows_validating from performance_schema.replication_group_member_stats, Count_Transactions_rows_validating, 1) |
| 34 |
--let $assert_text= The value of Count_Transactions_rows_validating should be 0 |
| 35 |
--let $assert_cond= "$certification_db_size" = 0 |
| 36 |
--source include/assert.inc |
| 37 |
|
| 38 |
--let $stable_set= query_get_value(SELECT Transactions_Committed_all_members from performance_schema.replication_group_member_stats, Transactions_Committed_all_members, 1) |
| 39 |
--let $assert_text= The value of Transactions_Committed_all_members should be 0 |
| 40 |
--let $assert_cond= "$stable_set" = 0 |
| 41 |
--source include/assert.inc |
| 42 |
|
| 43 |
--let $last_certified_transaction= query_get_value(SELECT Last_conflict_free_transaction from performance_schema.replication_group_member_stats, Last_conflict_free_transaction, 1) |
| 44 |
--let $assert_text= The value of Last_conflict_free_transaction should not be present |
| 45 |
--let $assert_cond= "$last_certified_transaction" = "No such row" |
| 46 |
--source include/assert.inc |