Skip to content

Commit 9f2dba9

Browse files
morningmanclaude
andcommitted
[docs](connector) P4 Batch D maxcompute-removal design + T06b doc-sync [D-027]
Batch C is complete (the T06b flip lands in the next commit). This records the verified Batch D removal closure and syncs the tracking docs. - New designs/P4-batchD-maxcompute-removal-design.md: turnkey closure for dropping fe-core's odps deps -- delete the 21-file legacy MaxCompute subsystem, clean ~30 reverse-reference files (84 refs), keep image/plan/thrift-compat symbols, drop the two odps-sdk-* blocks from fe-core/pom.xml. Produced by a parallel re-grep + adversarial-verify pass (OQ-3 satisfied); zero survivor risks. Mirrors the trino removal (524097e + c4ac2c5). Execution gated on user live-validation. - decisions-log D-027: T06b flip + 2 user decisions (flip-before-removal sequencing; fe-core direct-declarations-only dep scope). - 01-spi-extensions-rfc §20 E11: register the 2 T06a SPI additions (ConnectorSession.setCurrentTransaction, ConnectorWriteOps.usesConnectorTransaction). - PROGRESS / tasks-P4 / connectors-maxcompute doc-sync + HANDOFF. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
1 parent afa4675 commit 9f2dba9

7 files changed

Lines changed: 238 additions & 107 deletions

File tree

‎plan-doc/01-spi-extensions-rfc.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1259,6 +1259,7 @@ fi
12591259
**SPI 面(default-only,[D-009])**:
12601260
- `ConnectorTransaction`(既有,+4 default):`addCommitData(byte[])`(B1)、`supportsWriteBlockAllocation()` / `allocateWriteBlockRange(sid, count)`(C1)、`getUpdateCnt()`。fe-core `Transaction` 加同名 default;`PluginDrivenTransaction`(`PluginDrivenTransactionManager` 产)桥接委派(A)。
12611261
- `ConnectorSession.allocateTransactionId()`(P4-T03 新增 default 抛;fe-core `ConnectorSessionImpl` override 回 `Env.getNextId`):为**无外部 id 的连接器**(如 maxcompute)提供引擎全局 txn id 分配器,连接器经它在 `beginTransaction` 分配,id 即 Doris `txn_id`(与 sink / `GlobalExternalTransactionInfoMgr` 一致)。细化 [D-015]/U3「连接器分配」,见 [D-024]。
1262+
- **P4-T06 翻闸新增(2,default-preserving,零 jdbc/es/trino 影响;[D-026] 预授、登记 2026-06-07)**:`ConnectorSession.setCurrentTransaction(ConnectorTransaction)`(default 抛;fe-core `ConnectorSessionImpl` 加 volatile 字段 + override `getCurrentTransaction`)——把 connectorTx 绑入 **sink 的** session 供 T04 `planWrite` 读 `getCurrentTransaction()`(解 dormant→live 的 G1);`ConnectorWriteOps.usesConnectorTransaction()`(default false;`MaxComputeConnectorMetadata` override true)——executor 据此在调任何 throwing-default 写法前分流 txn-model(MC)vs JDBC insert-handle([D-026] D-1)。
12621263
- `ConnectorWritePlanProvider.planWrite(session, handle) → ConnectorSinkPlan(TDataSink)`(E,仿 `ConnectorScanPlanProvider`);`Connector.getWritePlanProvider()` default null。`ConnectorWriteHandle` = {tableHandle, columns, overwrite, writeContext};`ConnectorSinkPlan` 包 opaque `TDataSink`。
12631264
- DML 覆盖 INSERT / DELETE / MERGE(D);procedures defer(E2 / P6)。
12641265

‎plan-doc/HANDOFF.md‎

Lines changed: 48 additions & 91 deletions
Large diffs are not rendered by default.

‎plan-doc/PROGRESS.md‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# 📊 项目进度仪表盘
22

3-
> 最后更新:**2026-06-06** | 当前阶段:**P4 maxcompute·scope=C(写-SPI RFC 先行)**——写/事务 SPI RFC 已批准;**W-phase(W1–W7)全部落地**:W1+W2 `be945476ba7` + W3+W6 `9ad2bbe40ec` + W4 `759cc0874c8` + W5 `9ebe5e27fa4` + W7 文档(D-021/D-022 入 log、01-spi-rfc §20 E11、DV-009),behind gate、零行为变更、golden 等价 ✅;**P4 adopter 设计已批准**([D-023],5 批/11 task,见 [tasks/P4](./tasks/P4-maxcompute-migration.md));**Batch A+B 全完成**(T01–T04 ✅,gate 关 dormant);**Batch C 设计 ✅ 签字 [D-026]**([翻闸设计](./tasks/designs/P4-T05-T06-cutover-design.md));下一步 = **实现 T05(dormant)→ T06(live, 两 commit)**,前置 R-004 防御测。P3 hybrid 已 **#64143 合入** `branch-catalog-spi`(`5c240dc7a34`)| 项目总进度:**37%**
3+
> 最后更新:**2026-06-07** | 当前阶段:**P4 maxcompute·scope=C(翻闸完成)**——写/事务 SPI RFC 已批准;**W-phase(W1–W7)全部落地** ✅;**P4 adopter 设计已批准**([D-023],5 批/11 task);**Batch A+B 全完成**(T01–T04,gate 关 dormant);**Batch C 翻闸完成**(T05 image-compat + T06a 写接线/UT + **T06b flip ✅** `CatalogFactory.SPI_READY_TYPES += "max_compute"`,gate 全绿 [D-027]);下一步 = **Batch D**(清 ~30 反向引用 + 删 legacy 子系统 + drop fe-core odps 依赖,**待用户 live ODPS 验证后做**——设计 [Batch D 移除](./tasks/designs/P4-batchD-maxcompute-removal-design.md))。P3 hybrid 已 **#64143 合入** `branch-catalog-spi`(`5c240dc7a34`)| 项目总进度:**38%**
44
> [README](./README.md) · [Master Plan](./00-connector-migration-master-plan.md) · [SPI RFC](./01-spi-extensions-rfc.md) · [Decisions](./decisions-log.md) · [Deviations](./deviations-log.md) · [Risks](./risks.md) · [Agent Playbook](./AGENT-PLAYBOOK.md) · [Handoff](./HANDOFF.md)
55
66
---
@@ -13,7 +13,7 @@
1313
| **P1** | scan-node 收口 + 重复清理 | 1 周 | ▰▰▰▰▰▰▰▰▰▰ 100% | ✅ 完成(PR [#63641](https://github.com/apache/doris/pull/63641) squash-merged `778c5dd610f`;T1 推迟 P8;T2 推迟 P4/P5)| [tasks/P1](./tasks/P1-scan-node-cleanup.md) |
1414
| **P2** | trino-connector 迁移 | 2 周 | ▰▰▰▰▰▰▰▰▰▰ 100% | ✅ 已合入 `branch-catalog-spi`(#64096,squash `0793f032662`;T12 回归推迟 DV-003)| [tasks/P2](./tasks/P2-trino-connector-migration.md) |
1515
| P3 | hudi 迁移 | 2 周 | ▰▰▰▰▰▱▱▱▱▱ 45% | ✅ hybrid(D-019)批 A–D 已合入 `branch-catalog-spi`(**#64143** squash `5c240dc7a34`);批 E(live cutover)并入 P7 | [tasks/P3](./tasks/P3-hudi-migration.md) |
16-
| P4 | maxcompute 迁移 | 2 周 | ▰▰▰▰▰▱▱▱▱▱ 45% | 🚧 **W-phase 全落地** ✅(W1+W2 `be945476ba7` / W3+W6 `9ad2bbe40ec` / W4 `759cc0874c8` / W5 `9ebe5e27fa4` / W7 文档);**adopter 设计已批准**([D-023],5 批/11 task);**Batch A+B 全完成**(T01 DDL / T02 分区 / T03 写事务 / T04 写计划 ✅,gate 关 dormant),下一 = **Batch C 翻闸**(live)| [tasks/P4](./tasks/P4-maxcompute-migration.md) |
16+
| P4 | maxcompute 迁移 | 2 周 | ▰▰▰▰▰▰▱▱▱▱ 55% | 🚧 **W-phase 全落地** ✅;**adopter 设计已批准**([D-023],5 批/11 task);**Batch A+B 全完成**(T01–T04 dormant);**Batch C 翻闸完成**(T05 + T06a + **T06b flip ✅**,gate 全绿 [D-027]),下一 = **Batch D**(删 legacy + drop odps 依赖,待 live 验证)| [tasks/P4](./tasks/P4-maxcompute-migration.md) |
1717
| P5 | paimon 迁移 | 3 周 | ▱▱▱▱▱▱▱▱▱▱ 0% | ⏸ 待启动 | — |
1818
| P6 | iceberg 迁移 | 5 周 | ▱▱▱▱▱▱▱▱▱▱ 0% | ⏸ 待启动 | — |
1919
| P7 | hive (+HMS) 迁移 | 6 周 | ▱▱▱▱▱▱▱▱▱▱ 0% | ⏸ 待启动 | — |
@@ -33,7 +33,7 @@
3333
| **es** | ✅ | ✅ 100% | ✅ | ✅ | ✅ | **100%** | [详情](./connectors/es.md) |
3434
| trino-connector | ✅ | ✅ 100% | ✅ | ✅ | ✅ | **100%** | [详情](./connectors/trino-connector.md) |
3535
| hudi | 🟡(D-005 区分符 + D-020 模型 dispatch 已设计;实现批 E)| 🟨 55%(读路径 dormant + 批 C 测试基线)| ❌(gate 关)| ❌ | 0/0(寄生 hms)| **25%** | [详情](./connectors/hudi.md) |
36-
| maxcompute | 🟡 | 🟨 70%(DDL+分区+写事务+写计划 ✅;剩 cutover 接线)| ❌ | ❌ | 0/~19(re-grep 校正,旧称 12)| **30%** | [详情](./connectors/maxcompute.md) |
36+
| maxcompute | 🟡 | 🟨 85%(DDL+分区+写事务+写计划+**翻闸 ✅**;剩 legacy 删除)| ✅ **翻闸 T06b** | ❌(Batch D 删,待 live 验证)| 0/~30(Batch D 闭包已 verify)| **60%** | [详情](./connectors/maxcompute.md) |
3737
| paimon | 🟡 | 🟨 50% | ❌ | ❌ | 0/10 | **20%** | [详情](./connectors/paimon.md) |
3838
| iceberg | 🟡 | 🟥 10% | ❌ | ❌ | 0/19 | **5%** | [详情](./connectors/iceberg.md) |
3939
| hive (+hms) | 🟡 | 🟥 20% | ❌ | ❌ | 0/31 | **10%** | [详情](./connectors/hive.md) |
@@ -44,16 +44,16 @@
4444

4545
> 状态非 ✅ 的项,按阶段聚合。详细见各阶段 task 文件。
4646
47-
### P4 — maxcompute 迁移(🚧 full adopter;**设计已批准** [D-023],5 批/11 task;Batch A ✅,Batch B ✅(T03+T04),下一步 Batch C 翻闸)
47+
### P4 — maxcompute 迁移(🚧 full adopter;**设计已批准** [D-023],5 批/11 task;Batch A+B+C ✅(翻闸完成),下一步 Batch D(删 legacy + drop odps 依赖,待 live 验证))
4848

4949
> 策略 = **full adopter + 翻闸**([D-023],非 P3 hybrid);前置 W-phase(W1–W7)✅。批次计划 + 完整 task 表见 [tasks/P4](./tasks/P4-maxcompute-migration.md)。
5050
5151
| 批 | 范围 | gate | task | 状态 |
5252
|---|---|---|---|---|
5353
| A | 连接器 DDL + 分区 parity | 🔒 关 | P4-T01 ✅ / T02 ✅ | ✅ T01 DDL + T02 分区 listing 完成(gate 全绿:compile + checkstyle 0 + import-gate)|
5454
| B | 写/事务 SPI(`ConnectorTransaction`/`WriteOps` + `WritePlanProvider`→`TMaxComputeTableSink`)| 🔒 关 | P4-T03 ✅ / T04 ✅ | ✅ T03 写/事务 SPI(`MaxComputeConnectorTransaction`+`beginTransaction`)+ T04 写计划(`MaxComputeWritePlanProvider.planWrite`,OQ-2=Approach A)完成,gate 全绿 |
55-
| C | 翻闸(`SPI_READY_TYPES` + GSON + `getEngine`;含 R-004 防御测)| 🔓 **live** | P4-T05/T06 | 🚧 设计✅[D-026];**T05 ✅ gate-green(待 commit)** / T06 ⏳ |
56-
| D | 清 ~19 反向引用 + 删 `datasource/maxcompute/`(收口 P1-T02)| 🔓 live | P4-T07/T08/T09 | ⏳ |
55+
| C | 翻闸(`SPI_READY_TYPES` + GSON + `getEngine`;含 R-004 防御测)| 🔓 **live** | P4-T05/T06 | ✅ **翻闸完成**(T05 image-compat + T06a 写接线/UT + **T06b flip**,gate 全绿 [D-027]);R-004 part-2 live 待用户跑 |
56+
| D | 清 ~30 反向引用 + 删 legacy 子系统(21 文件,收口 P1-T02)+ **drop fe-core odps 依赖** | 🔓 live | P4-T07/T08/T09 | ⏳ 闭包已 verify([Batch D 移除设计](./tasks/designs/P4-batchD-maxcompute-removal-design.md));**执行待用户 live ODPS 验证后**([D-027])|
5757
| E | 连接器测试基线 + PR | — | P4-T10/T11 | ⏳ |
5858

5959
### P3 — hudi 迁移(🚧 hybrid,批 A–D 全部 in-scope 完成:T02/T04/T05/T07 ✅ + T06/T08 决策;T03→批 E;剩批 E→P7,**P3 已合入 #64143 `5c240dc7a34`**;批 E live cutover 并入 P7)

‎plan-doc/connectors/maxcompute.md‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
| **fe-core 旧路径** | `fe/fe-core/src/main/java/org/apache/doris/datasource/maxcompute/` |
1212
| **共享依赖** | 无 |
1313
| **计划迁移阶段** | **P4** |
14-
| **当前状态** | 🚧 **Batch A+B 全完成**(P4-T01 DDL / T02 分区 / T03 写事务 / T04 写计划 ✅,gate 关 dormant);下一 = **Batch C 翻闸**(live) |
15-
| **完成度** | 55% |
14+
| **当前状态** | 🚧 **Batch C 翻闸完成**(T05 image-compat + T06a 写接线/UT + **T06b flip ✅** `SPI_READY_TYPES += "max_compute"`,gate 全绿 [D-027]);下一 = **Batch D**(删 legacy 子系统 + drop fe-core odps 依赖,**待用户 live ODPS 验证后做**)|
15+
| **完成度** | 75% |
1616
| **主 owner** | @me |
1717

1818
---
@@ -28,7 +28,7 @@
2828
| 5 | ⏳ | |
2929
| 6 | ✅ | META-INF/services 已注册 |
3030
| 7 | ⏳ | |
31-
| 8-9 | ⏳ | gsonPostProcess 加 `max_compute → plugin` 迁移 |
31+
| 8-9 | ✅ | T05:GSON `registerCompatibleSubtype`(catalog/db/table)迁 PluginDriven(image 兼容)|
3232
| 10 | ⏳ | 清理 12 处反向 instanceof |
3333
| 11 | ⏳ | PhysicalPlanTranslator 删 `MaxComputeExternalTable` 分支 |
3434
| 12 | ⏳ | 0 个测试 |
@@ -73,6 +73,9 @@
7373

7474
## 进度日志
7575

76+
### 2026-06-07
77+
- **P4-T06b 翻闸落地(Batch C 完成,唯一 live 切点)= max_compute 进 SPI**:`CatalogFactory.SPI_READY_TYPES += "max_compute"`(:52) + 删 legacy `case "max_compute"`(原 :146-149) + 删 unused `MaxComputeExternalCatalog` import + 注释去 max_compute。翻闸后 `max_compute` catalog→`PluginDrivenExternalCatalog`、table→`PluginDrivenExternalTable`(GSON T05 兼容),读/写/DDL/分区/show 全经 SPI;legacy `instanceof MaxCompute*` 分支全失配(dead)。gate 全绿(compile BUILD SUCCESS/MVN_EXIT=0 + checkstyle 0/CS_EXIT=0 + import-gate 0,真实 EXIT 核)。**前继 T05/T06a 已 commit**(image-compat + dormant 写接线 W-a..d/G1–G5 + UT)。**SPI_READY ✅**。**2 决策 [D-027]**:flip 先行/移除待 live 验证;fe-core 仅删直接 odps 声明(transitive-via-fe-common 留)。Batch D 完整移除闭包(21 删 / ~30 清 / keep / pom drop)已 verify → [Batch D 移除设计](../tasks/designs/P4-batchD-maxcompute-removal-design.md),**执行前置门 = 用户跑 `OdpsLiveConnectivityTest`(4 个 `MC_*` 环境变量)+ 手测 smoke 绿**。
78+
7679
### 2026-06-06
7780
- **P4-T04 连接器写计划完成 = Batch A+B 全完成**(Batch B 收尾,gate 关、dormant、零 live 风险):新建 `MaxComputeWritePlanProvider.planWrite`(**OQ-2=Approach A**:finalizeSink 一处建 ODPS 写 session → `session.getCurrentTransaction()`→`MaxComputeConnectorTransaction.setWriteSession` 绑 txn → 盖 `TMaxComputeTableSink`(静态字段 + `static_partition_spec` + `partition_columns`(ODPS 表列) + `write_session_id` + `txn_id`),无运行期注入 hook)+ `MaxComputeDorisConnector.getSettings()`(D-3 抽出,scan/write 共用,镜像 legacy 单 settings)/`getWritePlanProvider()` + `supportsInsert()`=true(D-4,余 throwing-default 待 Batch C)+ fe-core seam(`PluginDrivenTableSink.bindViaWritePlanProvider(insertCtx)` 读 overwrite+静态分区 / `PluginDrivenInsertCommandContext.staticPartitionSpec`,非基类避 `MCInsertCommandContext` shadow)。5 决策 [D-025];偏差 [DV-012](partition_columns 取 ODPS 表列)。坑10 javap 全核;写路径 ArrowOptions MILLI/MILLI(≠scan);block_id 不盖(运行期 T03)。守门全绿(compile BUILD SUCCESS + checkstyle 0 + import-gate,真实 EXIT)。单测延 P4-T10。下一步 = **Batch C 翻闸**(live,前置 R-004 防御测)。
7881
- **P4-T03 连接器写/事务 SPI 完成**(Batch B 启,gate 关、dormant):新建 `MaxComputeConnectorTransaction`(港 `MCTransaction`:`addCommitData`[TBinaryProtocol 红线]/block-alloc/commit/rollback/getUpdateCnt)+ `MaxComputeConnectorMetadata.beginTransaction`,over W4 委派。两 fork [D-024]:txn id 经新增 `ConnectorSession.allocateTransactionId()`(尊重 [D-015])/ 写 session 创建挪 T04。偏差 [DV-011](block 上限常量、`DorisConnectorException`)。JDBC 仅半样板(无 `ConnectorTransaction`),MC 首个有状态事务 adopter。守门全绿(compile + checkstyle 0 + import-gate,真实 EXIT)。单测延 P4-T10。下一步 = P4-T04 写计划。

‎plan-doc/decisions-log.md‎

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
1616
| 编号 | 别名 | 简述 | 日期 | 状态 |
1717
|---|---|---|---|---|
18+
| D-027 | — | P4-T06b 翻闸落地 + Batch D 移除范围(2 决策,用户签字):**翻闸** `CatalogFactory.SPI_READY_TYPES += "max_compute"` + 删 legacy `case "max_compute"`(gate 全绿:compile/checkstyle 0/import-gate 0);**D-1 时序** = flip 先行、legacy 子系统删除 + fe-core odps 依赖 drop **待用户 live ODPS 验证后**做(保 flip 独立可回退);**D-2 依赖范围** = fe-core 仅删直接 `odps-sdk-*` 声明,transitive-via-fe-common 留(fe-common 供连接器/be-extensions)。Batch D 完整闭包(21 删 / ~30 清 / keep / pom)见 `designs/P4-batchD-maxcompute-removal-design.md`(OQ-3 穷举 re-grep 满足)。**2 SPI 新增登记 §20 E11**(D-026 预授):`ConnectorSession.setCurrentTransaction` + `ConnectorWriteOps.usesConnectorTransaction`;T06a 复核修 `PluginDrivenTableSink.getExplainString` `writeConfig==null` NPE 守卫记一笔 | 2026-06-07 | ✅ |
1819
| D-026 | — | P4 Batch C 翻闸设计(用户签字,design-only):**D-1** capability signal = 新增 `ConnectorWriteOps.usesConnectorTransaction()` default false(MC=true;executor 据此在调任何 throwing-default 写法前分流 txn-model vs JDBC insert-handle);**D-2** 两 commit(`[P4-T06a]` 写接线/绑定/R-004 隔离测 dormant + `[P4-T06b]` flip 末提);**D-3** 静态分区/overwrite 绑定**入 cutover**(避 INSERT OVERWRITE PARTITION 翻闸回归)。**两新 SPI**(均 default-preserving):`ConnectorSession.setCurrentTransaction` + `ConnectorWriteOps.usesConnectorTransaction`(impl 时 E11 登记)。设计 `designs/P4-T05-T06-cutover-design.md` | 2026-06-06 | ✅ |
1920
| D-025 | — | P4-T04 写计划 5 决策(D-1/D-2a 用户签字、D-3/D-4/D-5 主线定):D-1 **OQ-2=Approach A**(`planWrite` 在 finalizeSink 一处建 ODPS 写 session + `setWriteSession` 绑 txn + 盖 `txn_id`/`write_session_id`,无运行期注入 hook);D-2a 含 **fe-core seam fill**(`PluginDrivenTableSink.bindViaWritePlanProvider(insertCtx)` 读 overwrite+静态分区;`staticPartitionSpec` 加 `PluginDrivenInsertCommandContext` 非基类——避 `MCInsertCommandContext` override/shadow);D-3 抽 `MaxComputeDorisConnector.getSettings()`(legacy 单 `settings` 同供 scan+write,抽出=忠实港);D-4 `supportsInsert()`=true 余最小化(`beginInsert`/`finishInsert`/`getWriteConfig` 留 throwing-default,实际 executor 调用面待 Batch C);D-5 静态分区作 `getWriteContext()` col→val map | 2026-06-06 | ✅ |
2021
| D-024 | — | P4-T03 两 fork(用户签字):(1) txn id 经新增 `ConnectorSession.allocateTransactionId()`(fe-core `Env.getNextId` 背书)由连接器分配——尊重 [D-015]/U3,补 id-less 连接器(MC 无外部 id)的分配器机制;(2) ODPS 写 session 创建挪 T04 planWrite(T03 = 纯事务容器,over W4 委派、gate 关 dormant)| 2026-06-06 | ✅ |
@@ -46,6 +47,18 @@
4647

4748
## 详细记录(时间倒序)
4849

50+
### D-027 — P4-T06b 翻闸落地 + Batch D 移除范围(2 决策,用户签字)
51+
52+
- **日期**:2026-06-07
53+
- **状态**:✅(翻闸已落、gate 全绿;Batch D 移除 = 待 live 验证后做)
54+
- **背景**:用户要求「开始下一步(T06b 翻闸)」+ 追加「fe-core 不再依赖任何 maxcompute jar」。recon(并行 re-grep + 对抗验证,OQ-3 入口门满足)证:fe-core `odps-sdk-core`/`odps-sdk-table-api` 仅经 legacy MaxCompute 子系统(7 文件 `import com.aliyun.odps`,全在删除集)可达 → 去依赖 = 删整套 legacy(21 文件)+ 清 ~30 反向引用(即整个 Batch D)。
55+
- **决策**:
56+
- **翻闸(T06b)**:`CatalogFactory.SPI_READY_TYPES += "max_compute"`(:52) + 删 `case "max_compute"`(原 :146-149) + 删 unused import + 注释去 max_compute。gate 全绿(compile BUILD SUCCESS/MVN_EXIT=0 + checkstyle 0/CS_EXIT=0 + import-gate 0,真实 EXIT 核)。
57+
- **D-1(时序)= flip 先行、移除待 live 验证**:本任务只落 flip(独立可回退);legacy 子系统删除 + pom odps drop(Batch D)挪到**用户跑 `OdpsLiveConnectivityTest`(4 个 `MC_*` 环境变量)+ 手测 smoke 绿之后**的紧邻 follow-up。理由:删 legacy 即去掉易回退的 fallback,故 flip 在 live 验证前保持独立可 revert(trino 翻闸亦 flip 先于删除)。
58+
- **D-2(依赖范围)= 仅删直接声明**:fe-core/pom.xml 删两 `odps-sdk-*` 块即可;fe-core 删后**零** odps 源引用,但仍经 fe-common transitive 见 `odps-sdk-core`(fe-common 留 odps 供 `MCUtils` → 连接器 + be-java-extensions),可接受(用户选 "Direct declarations only")。镜像 trino `c4ac2c5911d`(只删 fe-core 直接声明)。
59+
- **2 SPI 新增登记**(D-026 预授,default-preserving):`ConnectorSession.setCurrentTransaction` + `ConnectorWriteOps.usesConnectorTransaction` 录入 `01-spi-extensions-rfc.md` §20 E11。T06a 对抗复核已修 `PluginDrivenTableSink.getExplainString` 加 `writeConfig==null` 守卫(防 plan-provider 模式 EXPLAIN NPE,翻闸后可达)——记一笔。
60+
- **设计文档(Batch D 执行源,turnkey)**:[tasks/designs/P4-batchD-maxcompute-removal-design.md](./tasks/designs/P4-batchD-maxcompute-removal-design.md)(21 删除集 + 84 反向引用闭包 + keep 集 + pom drop + ordered TODO;执行前置门 = live 验证绿)。
61+
4962
### D-026 — P4 Batch C 翻闸设计(3 子决策 + 2 SPI 新增,用户签字)
5063

5164
- **日期**:2026-06-06

0 commit comments

Comments
 (0)