Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DPE-3830 - Paxos single leader #416

Draft
wants to merge 8 commits into
base: main
Choose a base branch
from
3 changes: 2 additions & 1 deletion lib/charms/mysql/v0/mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,7 @@ def wait_until_mysql_connection(self) -> None:
# Increment this major API version when introducing breaking changes
LIBAPI = 0

LIBPATCH = 83
LIBPATCH = 84

UNIT_TEARDOWN_LOCKNAME = "unit-teardown"
UNIT_ADD_LOCKNAME = "unit-add"
Expand Down Expand Up @@ -999,6 +999,7 @@ def render_mysqld_configuration( # noqa: C901
"log_error": f"{snap_common}/var/log/mysql/error.log",
"general_log": "OFF",
"general_log_file": f"{snap_common}/var/log/mysql/general.log",
"loose-group_replication_paxos_single_leader": "ON",
"slow_query_log_file": f"{snap_common}/var/log/mysql/slow.log",
"binlog_expire_logs_seconds": f"{binlog_retention_seconds}",
"loose-audit_log_policy": audit_log_policy.upper(),
Expand Down
1 change: 1 addition & 0 deletions tests/unit/test_mysql.py
Original file line number Diff line number Diff line change
Expand Up @@ -2063,6 +2063,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
Expand Down
2 changes: 2 additions & 0 deletions tests/unit/test_mysqlsh_helpers.py
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,7 @@ def test_write_mysqld_config(
"log_error = /var/snap/charmed-mysql/common/var/log/mysql/error.log",
"general_log = OFF",
"general_log_file = /var/snap/charmed-mysql/common/var/log/mysql/general.log",
"loose-group_replication_paxos_single_leader = ON",
"slow_query_log_file = /var/snap/charmed-mysql/common/var/log/mysql/slow.log",
"binlog_expire_logs_seconds = 604800",
"loose-audit_log_policy = LOGINS",
Expand Down Expand Up @@ -362,6 +363,7 @@ def test_write_mysqld_config(
"log_error = /var/snap/charmed-mysql/common/var/log/mysql/error.log",
"general_log = OFF",
"general_log_file = /var/snap/charmed-mysql/common/var/log/mysql/general.log",
"loose-group_replication_paxos_single_leader = ON",
"slow_query_log_file = /var/snap/charmed-mysql/common/var/log/mysql/slow.log",
"binlog_expire_logs_seconds = 604800",
"loose-audit_log_policy = LOGINS",
Expand Down