| 1 |
include/group_replication.inc |
| 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 |
|
| 7 |
############################################################ |
| 8 |
# 1. Verify that the entries corresponding to the |
| 9 |
# instrumented memory are in the setup instruments |
| 10 |
# table and the memory summary tables. |
| 11 |
SELECT * FROM performance_schema.setup_instruments WHERE NAME LIKE '%GCS_XCom::xcom_cache%'; |
| 12 |
NAME ENABLED TIMED PROPERTIES FLAGS VOLATILITY DOCUMENTATION |
| 13 |
memory/group_rpl/GCS_XCom::xcom_cache YES NULL global_statistics 0 Memory usage statistics for the XCom cache. |
| 14 |
include/assert.inc ['There should be 1 entry corresponding to the XCom cache in the setup_instruments table after starting GR'] |
| 15 |
SELECT EVENT_NAME FROM performance_schema.memory_summary_global_by_event_name WHERE EVENT_NAME LIKE '%GCS_XCom::xcom_cache%'; |
| 16 |
EVENT_NAME |
| 17 |
memory/group_rpl/GCS_XCom::xcom_cache |
| 18 |
include/assert.inc ['There should be 1 entry corresponding to the XCom cache in the memory_summary_global_by_event_name table after starting GR'] |
| 19 |
|
| 20 |
############################################################ |
| 21 |
# 2. Verify that the sum of bytes allocated is greater than |
| 22 |
# the sum of bytes deallocated. |
| 23 |
include/assert.inc ['The sum bytes allocated must be equal to or greater than the sum of bytes deallocated'] |
| 24 |
|
| 25 |
############################################################ |
| 26 |
# 3. Stop GR |
| 27 |
include/stop_group_replication.inc |
| 28 |
|
| 29 |
############################################################## |
| 30 |
# 4. Verify that the entries corresponding to the instrumented |
| 31 |
# GCS memory remain in the tables after stopping GR. |
| 32 |
SELECT * FROM performance_schema.setup_instruments WHERE NAME LIKE '%GCS_XCom::xcom_cache%'; |
| 33 |
NAME ENABLED TIMED PROPERTIES FLAGS VOLATILITY DOCUMENTATION |
| 34 |
memory/group_rpl/GCS_XCom::xcom_cache YES NULL global_statistics 0 Memory usage statistics for the XCom cache. |
| 35 |
include/assert.inc ['There should be 1 entry corresponding to the XCom cache in the setup_instruments table after stopping GR'] |
| 36 |
SELECT EVENT_NAME, CURRENT_NUMBER_OF_BYTES_USED FROM performance_schema.memory_summary_global_by_event_name WHERE EVENT_NAME LIKE '%GCS_XCom::xcom_cache%'; |
| 37 |
EVENT_NAME CURRENT_NUMBER_OF_BYTES_USED |
| 38 |
memory/group_rpl/GCS_XCom::xcom_cache 0 |
| 39 |
include/assert.inc ['There should be 1 entry corresponding to the XCom cache in the memory_summary_global_by_event_name table after stopping GR'] |
| 40 |
|
| 41 |
################################################################# |
| 42 |
# 5. Assert that the number of bytes allocated is the same as the |
| 43 |
# number of bytes deallocated after stopping GR. |
| 44 |
include/assert.inc ['The sum of bytes allocated must be equal to the sum of bytes deallocated after stopping GR'] |
| 45 |
|
| 46 |
include/group_replication_end.inc |