Title: MariaDB 11.8 reports read_only as ON, and the role compares it with 1 (S-019-13, S-019-15) · Issue #450 · cloudfall-dev/cloudfall · GitHub
Open Graph Title: MariaDB 11.8 reports read_only as ON, and the role compares it with 1 (S-019-13, S-019-15) · Issue #450 · cloudfall-dev/cloudfall
X Title: MariaDB 11.8 reports read_only as ON, and the role compares it with 1 (S-019-13, S-019-15) · Issue #450 · cloudfall-dev/cloudfall
Description: Found by the real-host proving run of #441 (MariaDB 11.8.9 on Debian 13.6, main at c32ec5e). On 11.8, read_only is an enum (OFF, ON, NO_LOCK, NO_LOCK_NO_ADMIN). cloudfall_mariadb_replication_state_query reads it through CONCAT_WS('|', @@...
Open Graph Description: Found by the real-host proving run of #441 (MariaDB 11.8.9 on Debian 13.6, main at c32ec5e). On 11.8, read_only is an enum (OFF, ON, NO_LOCK, NO_LOCK_NO_ADMIN). cloudfall_mariadb_replication_state_...
X Description: Found by the real-host proving run of #441 (MariaDB 11.8.9 on Debian 13.6, main at c32ec5e). On 11.8, read_only is an enum (OFF, ON, NO_LOCK, NO_LOCK_NO_ADMIN). cloudfall_mariadb_replication_state_...
Opengraph URL: https://github.com/cloudfall-dev/cloudfall/issues/450
X: @github
Domain: github.com
IPv4 address: 140.82.114.4
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"MariaDB 11.8 reports read_only as ON, and the role compares it with 1 (S-019-13, S-019-15)","articleBody":"Found by the real-host proving run of #441 (MariaDB 11.8.9 on Debian 13.6, `main` at c32ec5e).\n\nOn 11.8, `read_only` is an enum (`OFF`, `ON`, `NO_LOCK`, `NO_LOCK_NO_ADMIN`). `cloudfall_mariadb_replication_state_query` reads it through `CONCAT_WS('|', @@global.read_only, ...)`, which gives `ON`, not `1`. Taken from the run with `ANSIBLE_VERBOSITY=1`:\n\n```\n\"stdout\": \"ON|2|0-1-11|0-1-11|0-1-11|0-1-11|1\"\n\"cloudfall_mariadb_local\": {..., \"readOnly\": \"ON\", ...}\n```\n\nEvery check compares against `'1'`:\n\n- `tasks/replication.yml:15` (`cloudfall_mariadb_local.readOnly != '1'`): \"Turn writes off on a server that becomes a replica\" runs and reports `changed` on every converge of a healthy replica. A second converge of the pair is therefore `changed=1` on the replica, so S-019-13's \"changes nothing\" does not hold (no second seed ran, which is the other half)\n- `filter_plugins/mariadb_replication.py:396` and `:405` (`theirs[\"readOnly\"] == \"1\"`): a source that is read-only is taken as writable. In the run, with the old primary set read-only by hand, the new primary's converge still answered `wait-promotion`, \"mariadb-replica is still writable\", with `\"readOnly\": \"ON\"` in the peer state. So a planned switch (S-019-15) can never take the \"source is read-only and applied\" branch on 11.8\n- `tasks/replication_check.yml:181` (`cloudfall_mariadb_peer_state.readOnly == '1'`) has the same comparison\n\nA side note from the same server: `SELECT @@read_only, @@gtid_slave_pos, COUNT(*) FROM billing.t` returned `0` for `@@read_only` on a read-only replica, while `SELECT @@global.read_only` alone returned `1`. Reading it with `SELECT @@global.read_only + 0`, or comparing against both `1` and `ON`, avoids both.\n\n\u003c!-- shipmill:agent -->","author":{"url":"https://github.com/apps/shipmill-romamo","@type":"Person","name":"shipmill-romamo"},"datePublished":"2026-11-16T21:26:39Z","url":"https://github.com/cloudfall-dev/cloudfall/issues/450"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b1ac63c3-c554-c28a-a1a1-397d7337bcaf |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BA80:2D8E06:EDE6B5:144DFD2:6B0558AB |
| html-safe-nonce | 1e228c04dfe6768f2d6391f8d36fd4d1ec2809b8dcdb5d62dd42f411b19904ec |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQTgwOjJEOEUwNjpFREU2QjU6MTQ0REZEMjo2QjA1NThBQiIsInZpc2l0b3JfaWQiOiI1MjMxMDM3NTc4NjY0NTY0OTA3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 7b3b1c4721b92a02859595406fd76d79b93b193b52a08dc6efcc9503e23725ad |
| hovercard-subject-tag | issue:6431157227 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/cloudfall-dev/cloudfall/450/issue_layout |
| twitter:image | https://opengraph.githubassets.com/5e94b8a8552384097bcaef7c839e7d643db3ae83bce2482540377d54c3f07640/cloudfall-dev/cloudfall/issues/450 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/5e94b8a8552384097bcaef7c839e7d643db3ae83bce2482540377d54c3f07640/cloudfall-dev/cloudfall/issues/450 |
| og:image:alt | Found by the real-host proving run of #441 (MariaDB 11.8.9 on Debian 13.6, main at c32ec5e). On 11.8, read_only is an enum (OFF, ON, NO_LOCK, NO_LOCK_NO_ADMIN). cloudfall_mariadb_replication_state_... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | shipmill-romamo[bot] |
| hostname | github.com |
| expected-hostname | github.com |
| None | a79a02b7e7546ea306864e922ed2103ef4c04fac63168e11c2b2d4d816793080 |
| turbo-cache-control | no-preview |
| go-import | github.com/cloudfall-dev/cloudfall git https://github.com/cloudfall-dev/cloudfall.git |
| octolytics-dimension-user_id | 339512759 |
| octolytics-dimension-user_login | cloudfall-dev |
| octolytics-dimension-repository_id | 1360999777 |
| octolytics-dimension-repository_nwo | cloudfall-dev/cloudfall |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 1360999777 |
| octolytics-dimension-repository_network_root_nwo | cloudfall-dev/cloudfall |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 10dff83edfd4f3617a7792a152d44991587b434c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width