Spring Boot drops mainDataConverter when a non-root namespace is configured

Aberta
#3,245 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

@yumingjs já está trabalhando nisso.

Desde 2/12/2026.

  • #3247 de @yumingjs — aberto

Avaliação

Dificuldade
3/5
Tempo estimado
1-2 dias
Facilidade para iniciantes
74/100
Tipo de issue
Bug
Clareza
Claramente especificada
Status de atividade
Ativa
Stack de tecnologia
java, spring-boot
Domínio
backend

Direção de pesquisa

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.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

bug

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

  1. Configure spring.temporal.connection.target=local, spring.temporal.namespace=root, and spring.temporal.start-workers=false with Temporal Spring Boot auto-configuration enabled.
  2. Register two distinct DataConverter beans named mainDataConverter and assignDataConverter. Configure spring.temporal.namespaces[0].namespace=partner and spring.temporal.namespaces[0].alias=assign.
  3. Inspect temporalWorkflowClient.getOptions().getDataConverter(): it is GlobalDataConverter.get(), not the mainDataConverter bean. assignWorkflowClient still uses assignDataConverter.

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 on main (b9f92567).
  • Platform: macOS, JDK 21.

Reported in review of #3157. This is separate from the customizer ordering bug tracked in #3244.

Linguagem predominante
Java
Estrelas
447
Forks
278
Merge médio
3d 22h
PRs com merge (30d)
28

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de temporalio/sdk-java

Todas as issues de temporalio/sdk-java

Issues semelhantes

Mais issues de Java

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.