Skip to content

v4.9.0

Latest

Choose a tag to compare

@github-actions github-actions released this 30 Nov 00:48
· 26 commits to master since this release

4.9.0

新增

  • Doris 目标端(ADR-0015):新增目标类型 DORIS 与写入模板 wD(Stream Load)。连接配置支持 loadUrl、batchSize、flushInterval、flushQueueLength、loadProps;EXTERNAL 模式只校验契约,MANAGED 模式由平台建表与演化(键模型、分桶、动态分区)。已在 Doris 4.0.4 测试集群完成 54 项 E2E。
  • 采集表高级筛选(ADR-0017 / ADR-0018):按目标端、采集源、写入模式、结构管理、耗时区间与创建/更新/结束时间筛选;筛选状态与 URL 双向同步,支持 chips 清除、服务端排序白名单与 LIKE 转义。
  • 告警扩展:新增 SCHEDULE(切日阶段)与 DAILY(每日批次汇总)事件;切日硬失败/部分失败事件、切日恢复通知、每日汇总(订阅制),以及集群状态一致性巡检(SYSTEM:STATE:CONSISTENCY)。
  • 账号自助页 /account:资料、授权来源、改密与主题(浅色/深色/跟随系统);新增 PUT /users/me,/change-password 重定向到新页面。
  • 控制台改版:导航分组标题调整为「运行监控」「系统配置」,首页风险队列/今日脉搏布局调整并移除新手清单;采集源与目标端改为右侧抽屉编辑。
  • 首页「今日脉搏」显示每个采集源的批次耗时;慢表条形可直接打开采集表详情。

变更

  • 采集路由唯一性落库(ADR-0021):etl_table 新增 source_route_key/target_slot_key 与两个活动行部分唯一索引;创建、编辑、恢复时同步计算,目标端类型/写入模板变更时在同一事务重写键,启动后回填历史行。
  • 编号迁移链(ADR-0022):schema.sql/data.sql 改为 classpath 下的 V0001 基线、V0002 种子与 V0003 历史升级步骤,新增 schema_migration;空库顺序重放、存量库收养基线、已应用校验和不符则拒绝启动。
  • 增量水位语义:单 key、只进不退;既无水位也无分区数据时置 U 并拒绝提交;__max__ 表拒绝补采;结构刷新按轮复用 Hive 会话并输出阶段耗时,源不可达时短路本轮剩余表。
  • MySQL 目标端字符集(ADR-0016):建表不再强制 utf8mb4,继承目标库的字符集与排序规则;平台自动建库仍用 utf8mb4,非 Unicode 表字符集记录服务日志告警。
  • 响应 DTO 与审计脱敏(ADR-0019 / ADR-0020):/sources、/tables 返回显式 DTO,连接账号与结构化配置仅对 OPERATE 可见;审计 metadata、资源名与失败摘要统一脱敏;任务报告需匹配执行与 token 并持久化防重放。
  • risk_log 退役:不再写入,纯告警改走服务日志;新库不再建表,遗留库保留历史数据。
  • 队列管理与 Schema 初始化拆分为内部单元,无接口与行为变化;发行包 CI 仅在缺少发行包时构建。

修复

  • 目标端准备失败重复记账:一次逻辑失败只记录一条事实,分区流水关联执行 ID。
  • 采集表详情深链 ?tab=logs、?tab=job、?tab=fillback 在详情返回前被重置。
  • 批量新增向导不再单独提供退役表的恢复入口,恢复统一到采集表列表的「已退役」范围(#176)。
  • 修改采集源连接后作业模板未落库、标识符策略缓存未及时失效、失败摘要与审计自由文本脱敏。
  • 批量新增把分区默认值注入非分区 Hive 表的目标选项。
  • 容量计数在丢租约或提前退出时可能变负、任务报告可重放、登录跳转丢失 redirect。

升级提示

  • 首次引入编号迁移链:存量库启动时把 V0001/V0002 记为 baseline(不执行),执行 V0003 历史升级步骤。已应用的迁移文件不可再修改,校验和不符会拒绝启动;升级前请备份数据库。
  • 启动迁移会新增 etl_execution.report_token/report_received_at、etl_table.source_route_key/target_slot_key、两个部分唯一索引与 schema_migration;建议按 worker → master 顺序逐台重启。
  • 采集路由回填:历史重复路由无法加键,会保留为空并在日志记录 ERROR,需要人工核对后编辑或退役其中一条。
  • 增量水位:没有水位且上一业务日目标分区无数据的表会被置 U,首次切日后请检查日切告警与 U 表名单;__max__ 表不再允许补采。
  • MySQL 目标端新表继承目标库字符集与排序规则,已有表不变。
  • DAILY 告警需要显式创建订阅规则,否则事件只记录不投递。
  • UI:/change-password 重定向到 /account;导航分组标题与首页布局调整;采集源/目标端编辑改为右侧抽屉。
  • Doris 目标端需要 Addax doriswriter 插件以及可用的 Doris FE/BE。

4.9.0

Added

  • Doris target (ADR-0015): new target type DORIS with the wD writer template (Stream Load). The connection config gains loadUrl, batchSize, flushInterval, flushQueueLength and loadProps; EXTERNAL mode validates the contract only, MANAGED mode lets the platform create and evolve the table (key model, buckets, dynamic partitions). 54 E2E checks passed on a Doris 4.0.4 cluster.
  • Table list filtering (ADR-0017 / ADR-0018): filter by target, source, write mode, schema mode, duration range and created/updated/finished time; filter state is kept in the URL, with removable chips, whitelisted sorting and LIKE escaping.
  • Alerting: new SCHEDULE (day-cut stages) and DAILY (daily batch summary) events, day-cut failure and recovery events, a daily summary (opt-in subscription) and a cluster state consistency check (SYSTEM:STATE:CONSISTENCY).
  • Self-service account page /account: profile, source grants, password change and theme (light / dark / follow system); new PUT /users/me; /change-password redirects to the new page.
  • Console refresh: navigation group titles are now 运行监控 and 系统配置, the dashboard risk queue / today pulse layout changed and the onboarding checklist was removed; source and target editing moved to right-side drawers.
  • The dashboard "today pulse" shows per-source batch durations and slow-table bars open the table detail.

Changed

  • Collection route uniqueness (ADR-0021): etl_table gains source_route_key / target_slot_key and two partial unique indexes for active rows; keys are computed on create/edit/restore, rewritten in the same transaction when the target type or writer template changes, and backfilled at startup for legacy rows.
  • Numbered migration chain (ADR-0022): schema.sql / data.sql became classpath V0001 baseline, V0002 seed and V0003 legacy upgrade steps, tracked in schema_migration; an empty database replays them, an existing database adopts the baseline, and a checksum mismatch aborts startup.
  • Incremental water marks: a single monotone key per table; a table with neither a mark nor previous-partition data is marked U and refused; __max__ tables no longer support fillback; schema refresh reuses Hive sessions per round, logs stage timings and short-circuits a dead source.
  • MySQL targets (ADR-0016): table DDL no longer forces utf8mb4; new tables inherit the database charset and collation. Platform-created databases still default to utf8mb4, and a non-Unicode table charset is logged.
  • Response DTOs and audit redaction (ADR-0019 / ADR-0020): /sources and /tables return explicit DTOs; connection accounts and structured config are OPERATE-only; audit metadata, resource names and failure summaries are redacted; job reports must match their execution and token and are replay-protected.
  • risk_log is retired: nothing is written, warnings go to the service log, new databases no longer create the table.
  • The queue manager and schema initialization were split into internal units with no API or behaviour change; the host-bundle CI only builds when the bundle is missing.

Fixed

  • Target preparation recorded the same failure twice; one logical failure now produces one fact, and partition logs carry the execution id.
  • Table detail deep links (?tab=logs, ?tab=job, ?tab=fillback) were reset before the detail response arrived.
  • The batch-add wizard no longer offers a second restore entry for retired tables; restoring is unified in the 已退役 scope of the table list (#176).
  • Job templates were not persisted after a source connection edit, the identifier policy cache was not invalidated, and failure summaries / audit free text are now redacted.
  • Batch add injected partition defaults into non-partitioned Hive target options.
  • Capacity counters could go negative on a lost lease, job reports could be replayed, and login dropped the redirect parameter.

Upgrade notes

  • First release with the numbered migration chain: an existing database records V0001/V0002 as baseline (not executed) and runs V0003, the legacy upgrade step. Applied migration files must not be edited; a checksum mismatch aborts startup. Back up the database before upgrading.
  • The startup migration adds etl_execution.report_token / report_received_at, etl_table.source_route_key / target_slot_key, two partial unique indexes and schema_migration; restart the worker before the master.
  • Route backfill: legacy duplicate routes cannot be keyed, stay unkeyed and are logged as errors; resolve them by editing or retiring one definition.
  • Incremental water marks: tables without a mark and without previous-partition data become U; check the day-cut alert and the U list after the first day cut. Fillback of __max__ tables is rejected.
  • New MySQL target tables inherit the database charset and collation; existing tables are unchanged.
  • DAILY alerts need an explicit subscription rule, otherwise events are recorded but not delivered.
  • UI: /change-password redirects to /account; navigation titles and the dashboard layout changed; source and target editing moved to right-side drawers.
  • Doris targets require the Addax doriswriter plugin and a reachable Doris FE/BE.