From 9f24bbfea3b4450300f2dca8c0bf4a263a20faf2 Mon Sep 17 00:00:00 2001 From: Paulo Machado Date: Fri, 15 Mar 2024 09:31:58 -0300 Subject: [PATCH 1/3] testing paxos single leader --- lib/charms/mysql/v0/mysql.py | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/charms/mysql/v0/mysql.py b/lib/charms/mysql/v0/mysql.py index e169ea4be..f362f022f 100644 --- a/lib/charms/mysql/v0/mysql.py +++ b/lib/charms/mysql/v0/mysql.py @@ -744,6 +744,7 @@ def render_mysqld_configuration( "general_log": "ON", "general_log_file": f"{snap_common}/var/log/mysql/general.log", "slow_query_log_file": f"{snap_common}/var/log/mysql/slowquery.log", + "loose-group_replication_paxos_single_leader": "ON", } if innodb_buffer_pool_chunk_size: From 045d51c26cab8c1e7891fd43dc2d103e314903ee Mon Sep 17 00:00:00 2001 From: Paulo Machado Date: Fri, 15 Mar 2024 09:35:57 -0300 Subject: [PATCH 2/3] fix utest --- tests/unit/test_mysqlsh_helpers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tests/unit/test_mysqlsh_helpers.py b/tests/unit/test_mysqlsh_helpers.py index 0d7aacb42..bef645080 100644 --- a/tests/unit/test_mysqlsh_helpers.py +++ b/tests/unit/test_mysqlsh_helpers.py @@ -272,6 +272,7 @@ def test_write_mysqld_config( "general_log = ON", "general_log_file = /var/snap/charmed-mysql/common/var/log/mysql/general.log", "slow_query_log_file = /var/snap/charmed-mysql/common/var/log/mysql/slowquery.log", + "loose-group_replication_paxos_single_leader = ON", "innodb_buffer_pool_chunk_size = 5678", "\n", ) @@ -312,6 +313,7 @@ def test_write_mysqld_config( "general_log = ON", "general_log_file = /var/snap/charmed-mysql/common/var/log/mysql/general.log", "slow_query_log_file = /var/snap/charmed-mysql/common/var/log/mysql/slowquery.log", + "loose-group_replication_paxos_single_leader = ON", "innodb_buffer_pool_chunk_size = 1048576", "performance-schema-instrument = 'memory/%=OFF'", "loose-group_replication_message_cache_size = 134217728", From cda47ebf8e3430ce1b1b432ab0c6035f6fc417e1 Mon Sep 17 00:00:00 2001 From: Paulo Machado Date: Wed, 25 Sep 2024 23:18:35 -0300 Subject: [PATCH 3/3] test fix --- tests/unit/test_mysql.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/unit/test_mysql.py b/tests/unit/test_mysql.py index 7b51fa467..c601057be 100644 --- a/tests/unit/test_mysql.py +++ b/tests/unit/test_mysql.py @@ -1833,6 +1833,7 @@ def test_render_mysqld_configuration(self, _get_available_memory): "loose-audit_log_policy": "LOGINS", "loose-audit_log_strategy": "ASYNCHRONOUS", "loose-audit_log_file": "/var/log/mysql/audit.log", + "loose-group_replication_paxos_single_leader": "ON", "innodb_buffer_pool_chunk_size": "2902458368", } self.maxDiff = None