apache / shardingsphere

Empowering Data Intelligence with Distributed SQL for Sharding, Scalability, and Security Across All Databases.
Apache License 2.0
20k stars 6.76k forks source link

How do I create multiple ShardingSphereDatasource? #20147

Closed huahuo840 closed 1 year ago

huahuo840 commented 2 years ago

I'm using DynamicDataSource, DynamicDataSource Contains a ShardingSphereDatasource and a dbc2DataSource.

When I try to create a ShardingSphereDatasource for more than one dbc2DataSource, I fail.

The reason for this failure is that the multiple ShardingSphereDatasource created are actually the same, and I found that the ShardingSphereDatasource was init only once. Re-creation will point to the same address

image

github-actions[bot] commented 2 years ago

Hello , this issue has not received a reply for several days. This issue is supposed to be closed.

RaigorJiang commented 1 year ago

This is not a ShardingSphere issue, I will close it.