feat(mariadb): add 11.4 replication and semisync hardening#2633
Open
feat(mariadb): add 11.4 replication and semisync hardening#2633
Conversation
Add MariaDB 11.4 standalone, replication, semisync, and Galera chart resources. Harden semisync startup, role publication, switchover fencing, and script distribution. Add shell specs for replication member join, role probe, switchover, and standalone template mapping.
Codecov Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #2633 +/- ##
=======================================
Coverage 0.00% 0.00%
=======================================
Files 73 78 +5
Lines 9197 10743 +1546
=======================================
- Misses 9197 10743 +1546 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
Keep the KubeBlocks health-check table schema on fresh replicas and clear only local rows before starting or repairing SQL replication. This prevents the replica repair path from changing a duplicate-key error into a missing-table replication error.
Require internal local admin read-only privileges before role decisions. Track primary read/write readiness after local root unlock and read_only repair. Repair syncer primary reconciliation when the listener is already exposed but local write readiness is missing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
read_only=0.REPLICATION MASTER ADMIN.kubeblocks.kb_health_checkduplicate-key follow failures through a local maintenance path that temporarily opensread_onlyand restores fail-closed state afterward.Local validation
git diff --checkbash -n addons/mariadb/scripts/replication-switchover.shhelm lint addons/mariadbhelm lint /tmp/mariadb-1.1.1-alpha.58.tgzhelm template mariadb addons/mariadbhelm template mariadb /tmp/mariadb-1.1.1-alpha.58.tgzshellspec -I shellspec --helperdir shellspec addons/mariadb/scripts-ut-specpassed: 135 examples, 0 failuresCurrent retest package
1b4979a9.1.1.1-alpha.58.796fca1e5b63f592d0b5ee26bb1cbff92a958a769f6594772411e3f79782d91f.59605d81654983a005040d1a1ebd0086ccb1dfc693f0096bedd914393ad7bc8a.adde0882e6511e4e6d93e3b5095e676e9a59babe8079525b687f14ca0af231f0.281166e54676d251ace1746945df724a92371c8e3acf722791b292a8b7d53d4a.3f8eebe9f3497787b8ff8c80e9c6e511d5c34e42f417ebd2303b9e7f99c5d25c.Latest focused evidence
1.1.1-alpha.57live gate and bootstrap/role publication each passed only their single scopes. Bootstrap eventually published one primary role and one Primary Service endpoint, then cleaned all test resources.1.1.1-alpha.57switchover and role-transition under load, 1 sample, failed only that scope and the namespace was preserved for inspection. The OpsRequest started and then failed with action timeout. The writer saw 64 successful writes, 35 failures, 12 no-primary samples, and no confirmed double-writable samples.kubeblocks.kb_health_checkduplicate-key 1062, and candidate root writes returned permission error during the fault window.1.1.1-alpha.58closes action success behind candidate root writes, syncer role agreement on both pods, old-primary follow repair, and Primary Service routing.Boundary