feat(mysql): run the mysql store on mariadb 11.4.7+ and 11.8.2+ #59
All Vouch review confidence checks passed
Residual risk 0.17 = Change Risk (0.43) × (1 − Review Confidence (0.60)).
Review depth and reviewer attention state are adequate.
Model 1 · Change Risk (XGBoost)
Score: 0.43 · 373 lines diff across 4 files
Model 2 · Review Depth (DistilBERT)
Depth Score: 0.17 · 1 substantive comment(s)
Model 3 · Review Timing & Attention
Session adequacy: 100% · Reviewer familiarity: 35%
Bedrock Claude 3 · Risk Narration
(disconnected)
Groq Risk Narration
AWS Bedrock is currently disconnected. Generate high-confidence PR triage narration on-demand using Groq.
Model 1 · Change Risk Attribution
SHAP Weights
Diff Size
diff_size
0.354
Shallow Review Depth
shallow_review_depth
0.289
Real PR Conversation Timeline
1 comments
"Review active on #59"
general
weight: 0.35
kamilmysliwiec
PR Checklist
Please check if your PR fulfills the following requirements:
PR Type
What kind of change does this PR introduce?
What is the current behavior?
MySqlOutboxStorerefuses MariaDB. With store-kit's opt-in (#44), some of its statements are still MySQL-only.Closes #58
What is the new behavior?
MySqlOutboxStoreopts into MariaDB11.4.7+ and11.8.2+:add()turns anullpayload into SQLNULLby comparing it withJSON_EXTRACT('null', '$')instead ofCAST('null' AS JSON)(MariaDB has no JSON cast). A test covers the top-level payloads"null","x","",0andfalse.add()writes 64 KiB statements rather than 1 MiB. MariaDB keepsJSONas text, so the statement time grows with its length.add()binds the batch document as text. MariaDB before11.4.11/11.8.7cuts a JSON function's result short in a derived table breaking every insert on11.4.7and11.8.2. MySQL keepsJSON_EXTRACT(?, '$').claim()locks withFOR UPDATE SKIP LOCKED, taking the same record locks asFOR UPDATE OF m(checked in MySQL 8.4'sdata_locks). MariaDB doesn't acceptOF, unfortunately.claim()'s leaseUPDATEpins the primary key withFORCE INDEX (PRIMARY), since MariaDB11.6.2+ withinnodb_snapshot_isolationon makes no semi-consistent reads.purgeDeadLetters()deletes with the multi-table form (DELETE d FROM ... AS d), since MariaDB accepts an alias in a single-tableDELETEfrom11.6only.add()JSDoc and README describe1020on MariaDB11.6.2+ and the 30-level payload nesting limit. MariaDB now has its own README paragraph.sql_require_primary_keytest is skipped there.outbox:mysql-storeproject on MariaDB11.4.7,11.8.2and11.8.Tested locally with this branch's store-kit build:
8.4and9.7pass 333/333.11.4.7,11.8.2,11.4and11.8pass 332, with 1 skipped.outboxandoutbox:postgres-storeprojects pass 784, with 2 skipped.Does this PR introduce a breaking change?
Other information
^0.1.Nand regenerate the lockfile.