mariadb: log primary reconcile drift predicates#3214
Draft
weicao wants to merge 1 commit into
Draft
Conversation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## helen/mariadb-open-prs-combined-20260715t030336z-r16 #3214 +/- ##
====================================================================================
Coverage 0.00% 0.00%
====================================================================================
Files 154 154
Lines 24252 24270 +18
====================================================================================
- Misses 24252 24270 +18 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
leon-ape
marked this pull request as draft
July 20, 2026 02:53
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.
Problem
Fresh focused r11 on addon combined
73d05dcfd2a907b7bbcb292d2f0d8d3de7d7abf1and syncer7502b58f45efd4fe8f2b06e5313230d9aec69510proved an addon-side marker oscillation. After an authoritative primary write commit succeeds, the runtime primary listener reconciler entersprimary-role-state-driftand starts repair before the next HA promotion. Repair retracts the authority markers, but the current aggregate log does not identify which of its four predicates first failed.Evidence:
5ca8e2cc2a71c74d177ef3b8c4e0dd2633bab90e75a3320964494130ce6f579acf3d4b219a8ad4416b9133b3a615f787a86d30389677bf88fa68c12bd83081fc(14/14)83aabd76e9612f9291bdefae358f75e2bc4622a5b35955f69ed00299eee69096234e06383a2362f02bbd2a5fff82cab5a0c27177ec82dd10d7d5aae345a5ee60(3/3)03:22:20Z; addonruntime-primary-listener-reconcile-repair-beginat03:22:24Z; only afterwards does the repair fail closed.Change
Capture and log the four primary-publish predicates before repair can mutate state:
primary_readyremote_root_fencemaster_infolistener_wildcardThe fast-path decision uses that same captured snapshot. This is diagnostic observability only; it does not change the repair policy or claim to fix the oscillation.
TDD and source gates
30 examples, 1 failurebefore production instrumentation30 examples, 0 failures768 examples, 0 failures, 9 historical pendingsbash -n addons/mariadb/scripts/replication-entrypoint.shshellcheck -S error addons/mariadb/scripts/replication-entrypoint.shhelm lint addons/mariadbhelm templateplus rendered predicate-log verificationgit diff --checkRuntime boundary
The next focused round is diagnostic N=1 only. Its acceptance target is an unambiguous pre-mutation value for all four predicates across the commit-to-repair window. It is not release evidence, and the full suite remains NO-LAUNCH.