-
Notifications
You must be signed in to change notification settings - Fork 6.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
dynamic actual-data-nodes refresh in join query is invalid #28704
Comments
|
|
Hello, I tried many versions today and finally implemented this feature in ShardingSphere JDBC version 5.1.1. The actual data nodes only need to configure the dynamically loaded logical table names to execute SQL on single or JOIN QUERY multiple tables. However, there seems to be a new issue with @ transactional () annotation management transactions. When my msyql connection driver version is mysql connector java 8.0.33, the transaction fails, After I downgraded version 8.0.20, the transaction was successful. Is this the reason for the new features of the version? If I want to use distributed transactions in version 5.1.1, will the above issues cause this issue |
|
1st
2nd
|
There hasn't been any activity on this issue recently, and in order to prioritize active issues, it will be marked as stale. |
|
Bug Report
I used a single database sharding tables use local transaction mode
I have configured some tables
What I designed is Automatically split
tableStrategy
by tenant_idthis is my configuration
my project address by github
I customized the allocation calculation class
DataShardingAlgorithm
implementsStandardShardingAlgorithm
DataShardingAlgorithm.Java
sharding.yaml
Expected behavior
I have added data for the
t_order
table withtenant_id = 1
My database has automatically added
t_order_1
I haven't configured a actualDataNodes with t_order_1 , but I can query it
Similarly, this table t_order_item also has the same result
JOIN
QUERY with two tables , But the result is as expectedReason analyze (If you can)
Which version of ShardingSphere did you use?
shardingsphere-jdbc 5.3.2 + JDK 17 + spring-boot 2.7.14
Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
Reason analyze (If you can)
java.sql.SQLException: Actual table
testApp.t_order_item_1is not in table rule configuration.
JOIN QUERY
TheactualDataNodes
displaying the associated table is not configuredBut the
actualDataNodes
of a single table seem to be automatically loadedDataShardingAlgorithm.java doSharding(Collection<String> collection)
with It seems that the current node can be obtainedWhich version of ShardingSphere did you use?
shardingsphere-jdbc 5.3.2 + JDK 17 + spring-boot 2.7.14
Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
The text was updated successfully, but these errors were encountered: