[背景] Phase 2 跨方真分发让中央协调方把 computeParty=selfMark=0 的 step 转发到远端 ssw-admin 跑。但下游 step(如 s4 训练/测试拆分、s5 建模 等)会按默认规则 resolveComputeParty 落到 SELF(selfMark=1), 跑去中心方本地找远端产的 csv ——「数据文件不存在」级联失败。 本轮让 artifact 带 producerPartyEndpoint 标记,下游 resolveComputeParty 据此继承同一远端。 [3 处核心修改] 1. StepForwardingClient.forward() 注入 producerPartyEndpoint 远端返回的每个 artifact 写入 ctx.computePartyEndpoint 2. FlowRunServiceImpl.execute() 注入 producerPartyEndpoint 本地执行也注入 selfEndpoint(selfMark=1 的 endpoint), 一次性预解析在循环开始 3. resolveComputeParty() 加 [Phase 2.1 跨方继承] 规则 节点无 datasetId/receiver 时,扫 inputs 所有 artifact 的 producerPartyEndpoint;全同端点 + 对应 selfMark=0 → 继承该 party [配套修改 — Phase 2 跨方真分发累积漏提交] - StepExecuteController(远端接收,@SaIgnore + X-Internal-Token) - StepContext 加 computePartyMode/NodeConfig/SelfMark/Endpoint - ComputeEngine supports(engineType, computeMode) 接口 - RemoteNaxComputeEngine 按 computePartyMode 选路 + 跨方转发 + op_vlr2p - SimulationComputeEngine supports 双签名 - PartyEntity 加 f_compute_mode/f_node_config 字段 - V1.1.1__party_node_config.sql 数据库迁移 [验证 runId] - 858350727431468869(修复前):s1/s2/s3 SUCCESS, s4 FAILED - 858360050459097157(含调试日志):8/8 SUCCESS, 76.2s - 858361832195242117(最终版):8/8 SUCCESS, 86.3s
24 lines
1.3 KiB
SQL
24 lines
1.3 KiB
SQL
-- ============================================================
|
|
-- V1.1.1 party 加计算/节点模式字段(参与方节点信息)
|
|
-- 依据 : 用户需求「在参与方里配置节点信息,含纯本地模拟/部署k8s模拟/接入真实连接器三种」
|
|
-- 范围 : 仅 sswflow 库 party 表
|
|
-- 回滚 : ALTER TABLE party DROP COLUMN IF EXISTS f_compute_mode;
|
|
-- ALTER TABLE party DROP COLUMN IF EXISTS f_node_config;
|
|
-- 说明 : compute_mode 决定该方算子走哪个计算引擎(SimulationComputeEngine /
|
|
-- RemoteNaxComputeEngine→NaxJob / RemoteNaxComputeEngine→Nax2PJob);
|
|
-- node_config 存该模式所需的连接参数(JSON)。为空时引擎回退全局
|
|
-- sswflow.nax.remote 开关(向后兼容历史单部署)。
|
|
-- ============================================================
|
|
|
|
ALTER TABLE party
|
|
ADD COLUMN IF NOT EXISTS f_compute_mode varchar(32);
|
|
|
|
COMMENT ON COLUMN party.f_compute_mode
|
|
IS '计算/节点模式: LOCAL_SIM(纯本地模拟) / K8S_SIM(部署k8s模拟) / CONNECTOR(接入真实连接器)';
|
|
|
|
ALTER TABLE party
|
|
ADD COLUMN IF NOT EXISTS f_node_config text;
|
|
|
|
COMMENT ON COLUMN party.f_node_config
|
|
IS '节点配置JSON: K8S_SIM→{namespace,naxImage,kubectlBin,timeoutMs}; CONNECTOR→{connectorId,connectorMode,endpoint}; LOCAL_SIM→可空';
|