Commit f4e3e84
committed
refactor(webapp): share JSON-parse recovery and keep poison rows with their JSON stripped
Extract the Cannot-parse-JSON recovery into one helper shared by the run
replication and trace/event writers instead of a near-duplicate copy in each.
Recovery now isolates the un-ingestable rows by bisection and re-inserts each
with its JSON column emptied, so the row still lands: a run keeps its terminal
status and a span keeps its place in the trace, and only the un-ingestable
content is dropped. Clean rows land in full; a row that cannot parse even
stripped is dropped and counted.1 parent a63e553 commit f4e3e84
7 files changed
Lines changed: 370 additions & 398 deletions
File tree
- .server-changes
- apps/webapp
- app
- services
- v3/eventRepository
- test
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
0 commit comments