Replies: 5 comments
-
The information is not enough, the multiple logical data sources of ShardingSphere are isolated. Are you saying that you have created two sets of configurations and used the two data sources separately, but there will be mistakes? |
Beta Was this translation helpful? Give feedback.
-
yes,is mistakes some times ,not happend every one |
Beta Was this translation helpful? Give feedback.
-
Thank you. But I can't reproduce this error. Can you offer a demo? |
Beta Was this translation helpful? Give feedback.
-
we project use shardingsphere config is pulled from paas platform, give me not work if not deploy paas, Can you create a demo by me provider the config? thanks |
Beta Was this translation helpful? Give feedback.
-
i looked the router code,found the routers of PartialSQLRouteExecutor init maybe exist problem,the code is follow:
the last invoked the follow code:
the CACHED_SERVICES is concurrenthashmap, the orderedSPIClass is sqlRouter classes, when exist multi sharding rule, the CACHED_SERVICES only cache the one rule, i see 5.20 modidyed the key contain rules |
Beta Was this translation helpful? Give feedback.
-
Bug Report
For English only, other languages will not accept.
Before report a bug, make sure you have:
Please pay attention on issues you submitted, because we maybe need more details.
If no response anymore and we cannot reproduce it on current information, we will close it.
Please answer these questions before submitting your issue. Thanks!
Version:Shardingsphere5.0.0
Project:ShardingSphere-JDBC
Expected behavior
we config two shardingsphere datasoure with different sharding rule
Actual behavior
the one shardingsphere datasource using the another sharding rule of datasoure while route sql, the business use mybatis plus
Reason analyze (If you can)
Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
1 business use two datasource:
this data source sharding rule is follow:
this data source sharding rule is follow:
2 error:
and the sourceid config is follows:
this datasource sharding rule logic table is 'tb_like ', but shardingsphere using the anthor data source sharding rule,is appear occasionally,not happend everyone
Example codes for reproduce this issue (such as a github link).
Beta Was this translation helpful? Give feedback.
All reactions