Spring Boot drops mainDataConverter when a non-root namespace is configured
Maintainer thường phản hồi trong vòng 1 ngày
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 74/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- java, spring-boot
- Lĩnh vực
- backend
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Java
- Star
- 447
- Fork
- 278
- Merge trung bình
- 3 ngày 22 giờ
- Pull request đã merge (30 ngày)
- 28
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của temporalio/sdk-java
-
Support the certificate with linebreak strings from env variableCó thể đã có người làm @officialasishkumar đã nhận 22 ngày trước. Đang mởenhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
temporalio/sdk-java#1825 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Spring Boot ignores Ordered on TemporalOptionsCustomizer beansCó thể đã có người làm @Quinn-With-Two-Ns đã nhận 2 ngày trước. Đang mởbug
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 30/100
temporalio/sdk-java#3244 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 5/5 Hơn một tuần Mức phù hợp với người mới 38/100
temporalio/sdk-java#3238 · 7 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Fix graceful shutdown of the shared worker-command pollerCó thể đã có người làm @yuandrew đã nhận 9 ngày trước. Đang mởsdk-java
temporalio/sdk-java#3234 · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Interface bridge methods are considered workflow methodsCó thể đã có người làm @Quinn-With-Two-Ns đã nhận 9 ngày trước. Đang mở
Độ khó 3/5 Nửa ngày Mức phù hợp với người mới 62/100
temporalio/sdk-java#3233 · 5 bình luận · 1 người được giao ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của temporalio/sdk-java
Issue tương tự
-
area-integrations
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
isXander/YetAnotherConfigLib#376 ·
-
? - Needs Triage bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
NVIDIA/cudf-spark-jni#5598 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
oracle/graalvm-reachability-metadata#12264 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[source-facebook-pages] post stream never returns attachments.media_typeCó thể đã có người làm @v-k-data đã nhận hôm nay. Đang mởarea/connectors needs-triage type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 77/100
Maintainer thường phản hồi trong vòng 1 ngày