apache / apache/incubator-seata-samples

运行时动态多数据源dataSourceProxy连接不正确

Open
#491 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
2.4k
Forks
2k
PR merge metrics
No merged PRs in 30d

Description

1. mybatis连接是正确的数据源连接
![image](https://user-images.githubusercontent.com/21171642/153527847-52b1f366-d6ab-48eb-85ed-e2cce1b200fe.png)
2. 到seata这边dataSourceProxy却变成了初始化默认的,目标是正确的
![image](https://user-images.githubusercontent.com/21171642/153528142-d7081f6a-3aef-435f-93e7-ab0b30657620.png)
3.第一次进入都是正常的,第二次就变成上述这样
使用的是运行时动态多数据源

Contributor guide

Open the contributing 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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.