Skip to content

Multi DataSource setup stopped working after upgrading Spring Boot to 3.3.x #41229

Closed as not planned
@icepuma

Description

@icepuma

Description

After upgrading Spring Boot from 3.2.7 to 3.3.1 our multi-datasource based on the AbstractRoutingDataSource stopped working. We have a test that tests different @Transactional - combinations.

I did read a lot about the LazyConnectionDataSourceProxy in issues like #15480, but nothing really worked:

  • Use LazyConnectionDataSourceProxy as my primary datasource with the target / readonly datasource feature
  • Wrapping our AbstractRoutingDataSource in LazyConnectionDataSourceProxy

Versions

OS: macOS 14.5
Java: 17
Spring Boot:

  • 3.2.7 ✅
  • 3.3.0 ❌
  • 3.3.1 ❌

How to reproduce the issue

Repository: https://github.com/open-source-issues/spring-multi-datasource
Command: https://github.com/open-source-issues/spring-multi-datasource/blob/main/README.md

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: invalidAn issue that we don't feel is valid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions