apache / apache/incubator-seata-samples
运行时动态多数据源dataSourceProxy连接不正确
- Dominant language
- Java
- Stars
- 2.4k
- Forks
- 2k
- PR merge metrics
- No merged PRs in 30d
Description
1. mybatis连接是正确的数据源连接

2. 到seata这边dataSourceProxy却变成了初始化默认的,目标是正确的

3.第一次进入都是正常的,第二次就变成上述这样
使用的是运行时动态多数据源
Contributor guide
Research direction
Start with the runtime dynamic multiple-data-source configuration described in the issue and trace how MyBatis and Seata’s dataSourceProxy are selected on the first and second access. Reproduce the second access shown in the screenshots; done means dataSourceProxy uses the correct runtime-selected data source instead of the initialization default.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend, database
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100