Spring Boot drops mainDataConverter when a non-root namespace is configured
维护者通常 1 天内回复
评估
- 难度
- 3/5
- 预计耗时
- 1-2 天
- 新手友好度
- 74/100
- Issue 类型
- 缺陷
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- java, spring-boot
- 领域
- backend
调研方向
Start in AutoConfigurationUtils.chooseDataConverter, then trace the downstream converter selector and the multi-namespace auto-configuration path. Add a regression test for the root and partner namespace converters using the reproduction setup in the issue; verify root workflow, schedule, and activity clients use mainDataConverter while the non-root workflow client uses assignDataConverter.
由索引模型根据 Issue 内容生成。
描述
Expected Behavior
The root namespace uses the application's mainDataConverter bean. A configured non-root namespace can use its own <alias-or-namespace>DataConverter without affecting the root converter.
Actual Behavior
With a root mainDataConverter and a non-root assignDataConverter, the root clients silently fall back to the SDK's global converter. The non-root workflow client still uses assignDataConverter. Without the non-root namespace and its converter, the root clients use mainDataConverter as expected.
In AutoConfigurationUtils.chooseDataConverter, the multi-namespace path filters both mainDataConverter and the namespace-specific converters out of the candidate list. It passes mainDataConverter separately, but the downstream selector only consults it if more than one candidate remains. This setup leaves zero candidates, so the selector returns null.
Steps to Reproduce the Problem
- Configure
spring.temporal.connection.target=local,spring.temporal.namespace=root, andspring.temporal.start-workers=falsewith Temporal Spring Boot auto-configuration enabled. - Register two distinct
DataConverterbeans namedmainDataConverterandassignDataConverter. Configurespring.temporal.namespaces[0].namespace=partnerandspring.temporal.namespaces[0].alias=assign. - Inspect
temporalWorkflowClient.getOptions().getDataConverter(): it isGlobalDataConverter.get(), not themainDataConverterbean.assignWorkflowClientstill usesassignDataConverter.
Specifications
- Reproduced with Spring Boot 2.7.18 on #3157 (
04f208e7) for the root workflow, schedule, and activity client options. The same converter selection logic predates #3157 and is present onmain(b9f92567). - Platform: macOS, JDK 21.
Reported in review of #3157. This is separate from the customizer ordering bug tracked in #3244.
- 主要语言
- Java
- 星标
- 447
- 派生
- 278
- 平均合并
- 3 天 22 小时
- 30 天内合并 PR
- 28
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
temporalio/sdk-java 的其他 Issue
-
Support the certificate with linebreak strings from env variable可能已有人在做 @officialasishkumar 于 22 天前认领。 未关闭enhancement
难度 2/5 1-3 小时 新手友好度 65/100
temporalio/sdk-java#1825 ·
维护者通常 1 天内回复
-
Spring Boot ignores Ordered on TemporalOptionsCustomizer beans可能已有人在做 @Quinn-With-Two-Ns 于 2 天前认领。 未关闭bug
难度 3/5 1-2 天 新手友好度 30/100
temporalio/sdk-java#3244 ·
维护者通常 1 天内回复
-
enhancement
难度 5/5 一周以上 新手友好度 38/100
temporalio/sdk-java#3238 · 7 条评论 ·
维护者通常 1 天内回复
-
Fix graceful shutdown of the shared worker-command poller可能已有人在做 @yuandrew 于 9 天前认领。 未关闭sdk-java
temporalio/sdk-java#3234 · 已指派 1 人 ·
维护者通常 1 天内回复
-
Interface bridge methods are considered workflow methods可能已有人在做 @Quinn-With-Two-Ns 于 9 天前认领。 未关闭
难度 3/5 半天 新手友好度 62/100
temporalio/sdk-java#3233 · 5 条评论 · 已指派 1 人 ·
维护者通常 1 天内回复
查看 temporalio/sdk-java 的全部 Issue
相似的 Issue
-
area-integrations
难度 2/5 1-3 小时 新手友好度 76/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
isXander/YetAnotherConfigLib#376 ·
-
? - Needs Triage bug
难度 2/5 1-3 小时 新手友好度 82/100
NVIDIA/cudf-spark-jni#5598 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 76/100
oracle/graalvm-reachability-metadata#12264 ·
维护者通常 1 天内回复
-
[source-facebook-pages] post stream never returns attachments.media_type可能已有人在做 @v-k-data 今天认领。 未关闭area/connectors needs-triage type/bug
难度 2/5 1-3 小时 新手友好度 77/100
维护者通常 1 天内回复