Repository navigation
Commit c6cff31
committed
fix(driver-sql): report an un-run MySQL widening ALTER at
Boot schema-sync's MySQL widening swallows a failed `ALTER … MODIFY COLUMN` on
purpose — correctness never depended on the widening having run, and a migration
must not take boot down (#9542 adjudicated exactly that and it is unchanged
here). It reported the swallow at `warn`.
AGENTS.md's degradation rule decides the level with one question: after the
degradation, does the system still look normal from the outside while something
it claims is persisted has not landed? Both halves hold — boot completes and
serves traffic, and the rule's `error` limb names this case verbatim, "DDL that
was supposed to run did not". An un-widened `TIMESTAMP` keeps truncating
milliseconds and an un-widened `TIME` keeps ROUNDING fractional seconds, against
a canonical storage form that promises the milliseconds are kept, and nothing
else reports the column as outstanding. Newly reachable, too: before #9542 the
boot ALTER waited MySQL's one-year default and never returned, so this catch
could not fire on a metadata-lock block at all.
Both messages now report at `error` and carry the second thing an `error` owes —
the FIX: identify the metadata-lock holder with `SHOW PROCESSLIST` or
`performance_schema.metadata_locks`, end it, then re-run `os migrate apply` or
restart, the widening being idempotent. Control flow is untouched.
The gate could not see these sites: `check-durability-degradation-log-level.mjs`
scans all of `packages/` and its baseline is empty, but its durability
vocabulary had no entry for the widening's DDL path. `runWideningAlters` is
declared there now — measured to light up exactly these two catches and nothing
else — so the class stays fixed rather than the two sites.
The emission goes through a named `logDurabilityFailure` helper rather than the
file's inline `(this.logger.error ?? this.logger.warn)(…)`: the gate's matcher
cannot see that parenthesized shape and reports it as a silent swallow, and the
spelling it CAN see, `this.logger.error?.(…)`, prints nothing at all against a
sink that has no `error` — worse than the `warn` it replaces. Pinned by a test
against such a sink.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01XqDQYVU5smx29ts9pAErjaerror, naming the fix (#9609)1 parent e8dba8a commit c6cff31
4 files changed
Lines changed: 239 additions & 25 deletions
File tree
- .changeset
- packages/drivers/driver-sql/src
- scripts
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
Lines changed: 129 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
94 | 94 | | |
95 | 95 | | |
96 | 96 | | |
97 | | - | |
| 97 | + | |
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
102 | 102 | | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
103 | 112 | | |
104 | | - | |
| 113 | + | |
105 | 114 | | |
106 | 115 | | |
107 | | - | |
| 116 | + | |
| 117 | + | |
108 | 118 | | |
109 | 119 | | |
110 | 120 | | |
| |||
174 | 184 | | |
175 | 185 | | |
176 | 186 | | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
177 | 213 | | |
178 | 214 | | |
179 | 215 | | |
| |||
361 | 397 | | |
362 | 398 | | |
363 | 399 | | |
364 | | - | |
| 400 | + | |
365 | 401 | | |
366 | 402 | | |
367 | 403 | | |
368 | | - | |
| 404 | + | |
369 | 405 | | |
370 | 406 | | |
371 | 407 | | |
372 | | - | |
| 408 | + | |
373 | 409 | | |
374 | 410 | | |
375 | 411 | | |
376 | 412 | | |
377 | | - | |
378 | | - | |
379 | | - | |
| 413 | + | |
| 414 | + | |
| 415 | + | |
380 | 416 | | |
381 | | - | |
| 417 | + | |
382 | 418 | | |
383 | 419 | | |
384 | | - | |
| 420 | + | |
| 421 | + | |
| 422 | + | |
| 423 | + | |
| 424 | + | |
| 425 | + | |
| 426 | + | |
| 427 | + | |
| 428 | + | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
| 433 | + | |
| 434 | + | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
| 474 | + | |
| 475 | + | |
| 476 | + | |
| 477 | + | |
| 478 | + | |
| 479 | + | |
| 480 | + | |
| 481 | + | |
| 482 | + | |
| 483 | + | |
| 484 | + | |
| 485 | + | |
| 486 | + | |
| 487 | + | |
| 488 | + | |
| 489 | + | |
| 490 | + | |
| 491 | + | |
| 492 | + | |
| 493 | + | |
| 494 | + | |
| 495 | + | |
| 496 | + | |
| 497 | + | |
| 498 | + | |
| 499 | + | |
| 500 | + | |
| 501 | + | |
| 502 | + | |
385 | 503 | | |
386 | 504 | | |
387 | 505 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
887 | 887 | | |
888 | 888 | | |
889 | 889 | | |
890 | | - | |
| 890 | + | |
| 891 | + | |
891 | 892 | | |
892 | 893 | | |
893 | 894 | | |
| |||
3983 | 3984 | | |
3984 | 3985 | | |
3985 | 3986 | | |
| 3987 | + | |
| 3988 | + | |
| 3989 | + | |
| 3990 | + | |
| 3991 | + | |
| 3992 | + | |
| 3993 | + | |
| 3994 | + | |
| 3995 | + | |
| 3996 | + | |
| 3997 | + | |
| 3998 | + | |
| 3999 | + | |
| 4000 | + | |
| 4001 | + | |
| 4002 | + | |
| 4003 | + | |
| 4004 | + | |
| 4005 | + | |
| 4006 | + | |
| 4007 | + | |
| 4008 | + | |
| 4009 | + | |
| 4010 | + | |
| 4011 | + | |
| 4012 | + | |
| 4013 | + | |
| 4014 | + | |
| 4015 | + | |
| 4016 | + | |
| 4017 | + | |
| 4018 | + | |
| 4019 | + | |
| 4020 | + | |
| 4021 | + | |
| 4022 | + | |
| 4023 | + | |
| 4024 | + | |
| 4025 | + | |
3986 | 4026 | | |
3987 | 4027 | | |
3988 | 4028 | | |
| |||
8113 | 8153 | | |
8114 | 8154 | | |
8115 | 8155 | | |
8116 | | - | |
| 8156 | + | |
8117 | 8157 | | |
8118 | | - | |
| 8158 | + | |
| 8159 | + | |
| 8160 | + | |
8119 | 8161 | | |
8120 | 8162 | | |
8121 | 8163 | | |
| |||
8150 | 8192 | | |
8151 | 8193 | | |
8152 | 8194 | | |
8153 | | - | |
8154 | | - | |
| 8195 | + | |
| 8196 | + | |
8155 | 8197 | | |
8156 | 8198 | | |
8157 | 8199 | | |
| |||
8219 | 8261 | | |
8220 | 8262 | | |
8221 | 8263 | | |
8222 | | - | |
8223 | | - | |
8224 | | - | |
| 8264 | + | |
| 8265 | + | |
| 8266 | + | |
| 8267 | + | |
| 8268 | + | |
| 8269 | + | |
| 8270 | + | |
| 8271 | + | |
8225 | 8272 | | |
8226 | 8273 | | |
8227 | 8274 | | |
| |||
8269 | 8316 | | |
8270 | 8317 | | |
8271 | 8318 | | |
8272 | | - | |
8273 | | - | |
8274 | | - | |
| 8319 | + | |
| 8320 | + | |
| 8321 | + | |
| 8322 | + | |
| 8323 | + | |
| 8324 | + | |
| 8325 | + | |
| 8326 | + | |
| 8327 | + | |
| 8328 | + | |
| 8329 | + | |
| 8330 | + | |
| 8331 | + | |
| 8332 | + | |
| 8333 | + | |
8275 | 8334 | | |
8276 | 8335 | | |
8277 | 8336 | | |
| |||
8307 | 8366 | | |
8308 | 8367 | | |
8309 | 8368 | | |
8310 | | - | |
8311 | | - | |
8312 | | - | |
| 8369 | + | |
| 8370 | + | |
| 8371 | + | |
| 8372 | + | |
| 8373 | + | |
| 8374 | + | |
| 8375 | + | |
| 8376 | + | |
| 8377 | + | |
8313 | 8378 | | |
8314 | 8379 | | |
8315 | 8380 | | |
| |||
0 commit comments