Commit 4008fa6
[controller] Preserve original strict failure during migration coercion
When the initial strict parse fails inside normalizeSchemaForMigration,
log strictFailure at INFO before attempting the LOOSE_NUMERICS-based
coercion, and on the post-coercion strict re-check attach strictFailure
as a suppressed exception of whatever the second parse throws.
For non-numeric violations (union default not first branch, bad names,
dangling content) the post-coercion strict parse still fails — and
without chaining, the operator only sees that second exception and has
no idea what was wrong with the source schema. The suppressed entry
puts the original message into the same stack trace.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 212f1ae commit 4008fa6
2 files changed
Lines changed: 24 additions & 4 deletions
File tree
- services/venice-controller/src
- main/java/com/linkedin/venice/controller
- test/java/com/linkedin/venice/controller
Lines changed: 13 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2296 | 2296 | | |
2297 | 2297 | | |
2298 | 2298 | | |
| 2299 | + | |
| 2300 | + | |
| 2301 | + | |
| 2302 | + | |
| 2303 | + | |
2299 | 2304 | | |
2300 | 2305 | | |
2301 | | - | |
2302 | | - | |
| 2306 | + | |
| 2307 | + | |
| 2308 | + | |
| 2309 | + | |
| 2310 | + | |
| 2311 | + | |
| 2312 | + | |
| 2313 | + | |
2303 | 2314 | | |
2304 | 2315 | | |
2305 | 2316 | | |
| |||
Lines changed: 11 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
555 | 555 | | |
556 | 556 | | |
557 | 557 | | |
558 | | - | |
| 558 | + | |
559 | 559 | | |
560 | 560 | | |
561 | 561 | | |
| |||
564 | 564 | | |
565 | 565 | | |
566 | 566 | | |
567 | | - | |
| 567 | + | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
| 571 | + | |
| 572 | + | |
| 573 | + | |
| 574 | + | |
| 575 | + | |
| 576 | + | |
568 | 577 | | |
569 | 578 | | |
0 commit comments