Commit 56bf1a0
committed
fix(doctor): route read-only check recommendation by failing asset class (#374 Defect 2B)
Read-only `cass doctor check` hardcoded `next_exact_command = cass doctor --fix
--json` regardless of what failed. But `--fix` maps to the SafeAutoRun repair
mode, whose allowed mutation classes are derived-cleanup only (RetainedPublish
Backup / ReclaimableDerivedCache / MemoCache) — it can never repair a failing
canonical-archive (`database`) or source-authority check, so it was a dead-end
recommendation for exactly the malformed-DB case that most needs guidance.
Added `doctor_read_only_next_command`, which routes by the failing check: a
canonical-archive / backup / reconstruct-candidate failure -> `cass doctor
repair --dry-run --json` (the mode that CAN reconstruct/restore that asset), a
source-coverage / inventory / raw-mirror failure -> `cass doctor archive-scan
--json`, and otherwise the safe auto-fix path -> `cass doctor --fix --json`.
Archive faults are prioritized over incidental cleanup failures. Doctor robot
goldens unchanged (healthy fixtures still recommend --fix).
Refs #374 (Defect 2B).1 parent 52de35e commit 56bf1a0
1 file changed
Lines changed: 70 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31427 | 31427 | | |
31428 | 31428 | | |
31429 | 31429 | | |
| 31430 | + | |
| 31431 | + | |
| 31432 | + | |
| 31433 | + | |
| 31434 | + | |
| 31435 | + | |
| 31436 | + | |
| 31437 | + | |
| 31438 | + | |
| 31439 | + | |
| 31440 | + | |
| 31441 | + | |
| 31442 | + | |
| 31443 | + | |
| 31444 | + | |
| 31445 | + | |
| 31446 | + | |
| 31447 | + | |
| 31448 | + | |
| 31449 | + | |
| 31450 | + | |
| 31451 | + | |
| 31452 | + | |
| 31453 | + | |
| 31454 | + | |
| 31455 | + | |
| 31456 | + | |
| 31457 | + | |
| 31458 | + | |
| 31459 | + | |
| 31460 | + | |
| 31461 | + | |
| 31462 | + | |
| 31463 | + | |
| 31464 | + | |
31430 | 31465 | | |
31431 | 31466 | | |
31432 | 31467 | | |
| |||
31469 | 31504 | | |
31470 | 31505 | | |
31471 | 31506 | | |
31472 | | - | |
| 31507 | + | |
31473 | 31508 | | |
31474 | 31509 | | |
31475 | 31510 | | |
| |||
68961 | 68996 | | |
68962 | 68997 | | |
68963 | 68998 | | |
| 68999 | + | |
| 69000 | + | |
| 69001 | + | |
| 69002 | + | |
| 69003 | + | |
| 69004 | + | |
| 69005 | + | |
| 69006 | + | |
| 69007 | + | |
| 69008 | + | |
| 69009 | + | |
| 69010 | + | |
| 69011 | + | |
| 69012 | + | |
| 69013 | + | |
| 69014 | + | |
| 69015 | + | |
| 69016 | + | |
| 69017 | + | |
| 69018 | + | |
| 69019 | + | |
| 69020 | + | |
| 69021 | + | |
| 69022 | + | |
| 69023 | + | |
| 69024 | + | |
| 69025 | + | |
| 69026 | + | |
| 69027 | + | |
| 69028 | + | |
| 69029 | + | |
| 69030 | + | |
| 69031 | + | |
| 69032 | + | |
68964 | 69033 | | |
68965 | 69034 | | |
68966 | 69035 | | |
| |||
0 commit comments