Skip to main content

Module replication

Module replication 

Source

Functionsยง

ensure_full_row_binlog_format
ensure_gtid_consistency
ensure_replication_commit_order
In case this is a MySQL replica, we ensure that the replication settings are such that the replica would commit all transactions in the order they were committed on the primary. We donโ€™t really know that this is a replica, but if the settings indicate multi-threaded replication and the preserve-commit-order setting is not on, then it could be a replica with correctness issues. We used to check performance_schema.replication_connection_configuration to determine if this was in-fact a replica but that requires non-standard privileges. Before MySQL 8.0.27, single-threaded was default and preserve-commit-order was not, and after 8.0.27 multi-threaded is default and preserve-commit-order is default on. So both of those default scenarios are fine. Unfortunately on some versions of MySQL on RDS, the default parameters use multi-threading without the preserve-commit-order setting on.
is_safe_sys_var_name ๐Ÿ”’
query_sys_var
Query a MySQL System Variable
verify_sys_setting ๐Ÿ”’
Verify a MySQL System Variable matches the expected value