Commit Graph

2 Commits (e1f086015c890a5937af6cad2a11d1259dcbd1d5)

Author SHA1 Message Date
haoliang 7a7b2baafc 修复JSON解析异常不写log_collect_raw的遗漏
ParseAndSave内部的JSON解析异常被自吞(catch+return),外层DoCollectCycle
的WriteBatch永远走不到。修复:在ParseAndSave内部catch也调用WriteBatch

ErrorSimulation工具升级为真实代码路径验证(含HTTP服务器模拟JSON解析)
1 month ago
haoliang cdb03d4db3 增强错误诊断:递归展开异常链+分类写入DB/告警
1. CollectWorker新增GetDetailedErrorMessage递归展开AggregateException
   解决HTTP异常只记录模糊的'发生一个或多个错误',现可追踪到SocketException

2. JSON解析失败新增WriteBatch写入log_collect_raw(之前丢失DB记录)

3. ProductionTracker失败→cnc_alert(alert_type=production_error)

4. DailySummaryJob失败→cnc_alert(alert_type=summary_error)

5. CollectRecordWriter.DB写失败时本地日志记录完整异常链

6. log_collect_raw.error_message VARCHAR(500)→TEXT

7. 新增ErrorSimulation验证工具(模拟4类异常→验证DB/日志)
1 month ago