Skip to content

v4.10.0

Latest

Choose a tag to compare

@wgzhao wgzhao released this 03 Dec 00:59
· 9 commits to master since this release

Added

  • 数据洞察重建(ADR-0023):一个报告接口、一个业务日期窗口,支持按采集源、目标端、目标库、采集日历、源库类型、异常类型、静态天数与自定义区间筛选,服务端排序分页;同一张表的六类异常合并为一行,缺采优先。
  • 洞察处置能力:确认/忽略(按表与异常类型,带到期业务日期,可提前取消)、批量停采与立即撤销、按源健康度排行、响应耗时趋势、对账失败清单与下钻、导出全部(按筛选逐页拉取)。
  • 洞察阈值归属采集源(V0005):低变化率、高变化率、耗时变动率与最少记录天数存入 etl_source.insight_config,空值使用平台默认 2% / 40% / 40% / 2 天。
  • 补采记录:新增提交历史与重复检测,已提交日期再次勾选时提示确认;支持只重试失败日期。
  • 运行日期上下文与执行快照(ADR-0024):每张表按自身采集日历计算业务日期,etl_job 记录模板生成日期与日历(V0006),etl_execution 保存实际执行的 addax JSON 原文(V0007);新增 GET /tables/{id}/executions/{executionId}/job,「采集作业配置」展示最近一次执行的任务 JSON。
  • 模板占位符新增 ${nature_*}/${work_*}/${trade_*},分区绑定新增 NATURAL_DATE/WORK_DATE/TRADE_DATE。
  • 筛选或字段映射变更导致作业模板过期时,界面提示需要重新生成。

Changed

  • 补采不再回填上一批日期到选择器;补采永远现场渲染且不写 etl_job,历史补采不再覆盖当前周期的模板。
  • 接口不兼容:删除 PUT /tables/{id}/addax-job,手工编辑任务 JSON 下线,可编辑的唯一来源回到采集表定义;GET /tables/{id}/addax-job 改为返回最近一次执行内容。
  • 洞察报告查询合并扫描并去除冗余排序,降低大数据量下的响应耗时;数据洞察页拆分为组件与 composable,行为不变。
  • 旧 /monitor/insight/* 接口保留一个版本供兼容,前端已切换到 GET /monitor/insights。

Fixed

  • SWRR 调度仅在成功派发时结算信用,避免失败重试造成节点偏斜。
  • 权限解析完成后保留采集表详情 ?tab= 深链。
  • 任务模板缓存校验、writer 时钟与作业回退在跨业务日期时的错配。
  • glob 升级到 14.0.7、minimatch 升级到 11.0.10,修复依赖安全告警。

升级提示

  • 新增迁移 V0004(etl_insight_ack)、V0005(etl_source.insight_config)、V0006(etl_job.generated_for_date/generated_calendar)、V0007(etl_execution.job_snapshot),存量库启动时自动应用;升级前请备份数据库。
  • 升级后首次执行会因模板缺少生成日期而重新渲染一次,属于预期行为。
  • job_snapshot 按表保留最近 30 条;更早的执行只清空 JSON 原文,不删除执行记录。
  • 删除 PUT /tables/{id}/addax-job;如有外部脚本调用,需改为修改采集表定义或读取新的执行快照接口。
  • 洞察阈值默认 2% / 40% / 40% / 2 天,可在采集源配置中覆盖;确认/忽略只隐藏提醒,不改变采集状态。

Added

  • Rebuilt data insight (ADR-0023): a single report endpoint over one business-date window with server-side filtering by source, target, target database, calendar, source DB type, anomaly type, static days and custom range, plus server-side sorting and paging. Multiple anomaly types for the same table are merged into one row, with missing collection taking precedence.
  • Insight actions: acknowledge/ignore by table and anomaly type until a business date (revocable early), bulk stop and immediate undo, per-source health ranking, runtime trend sparklines, reconciliation failure list with drill-down, and export of all filtered rows.
  • Insight thresholds now belong to the collection source (V0005): low/high change rate, runtime drift and minimum record days live in etl_source.insight_config; NULL uses the platform defaults of 2% / 40% / 40% / 2 days.
  • Fillback records: submission history and duplicate detection, confirmation when an already submitted date is selected again, and retry of failed dates only.
  • Run-date context and execution snapshots (ADR-0024): each table derives its business date from its own calendar, etl_job records the date and calendar the template was rendered for (V0006), and etl_execution keeps the exact addax JSON a run executed (V0007). New GET /tables/{id}/executions/{executionId}/job; "Collection job configuration" now shows the last executed job JSON.
  • New placeholders ${nature_*} / ${work_*} / ${trade_*} and partition bindings NATURAL_DATE / WORK_DATE / TRADE_DATE.
  • The UI warns when filter or mapping changes leave the job template stale.

Changed

  • Fillback no longer restores the previous batch of dates into the picker; fillback always renders on the fly and never writes etl_job, so a historical fillback cannot overwrite the current period's template.
  • Breaking API: PUT /tables/{id}/addax-job is removed and manual job JSON editing is retired; the collection table definition is again the only editable source. GET /tables/{id}/addax-job now returns the last executed content.
  • Insight report queries collapse scans and drop redundant sorts, reducing response time on large datasets; the insight page is split into components and composables with no behavior change.
  • The old /monitor/insight/* endpoints are kept for one release for compatibility; the UI uses GET /monitor/insights.

Fixed

  • SWRR settles credit only on successful assignments, preventing node skew under retries.
  • Table detail ?tab= deep links now survive permission resolution.
  • Job template cache validation, writer clock and job fallback no longer mismatch across business dates.
  • Bumped glob to 14.0.7 and minimatch to 11.0.10 for dependency security alerts.

Upgrade notes

  • New migrations V0004 (etl_insight_ack), V0005 (etl_source.insight_config), V0006 (etl_job.generated_for_date / generated_calendar) and V0007 (etl_execution.job_snapshot) are applied automatically on startup; back up the database first.
  • The first run after upgrade re-renders the job template once because it has no generation date; this is expected.
  • job_snapshot keeps the latest 30 executions per table; older rows only lose the JSON text, never the execution record.
  • PUT /tables/{id}/addax-job is removed; external scripts must edit the collection table definition or use the new execution snapshot endpoint.
  • Insight defaults are 2% / 40% / 40% / 2 days and can be overridden per source; acknowledgement only hides alerts and does not change collection state.