You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "Daibhid666 (via GitHub)" <gi...@apache.org> on 2023/06/06 06:43:06 UTC
[GitHub] [shardingsphere] Daibhid666 opened a new issue, #26070: shardingsphere-jdbc-core-spring-boot-starter5.3.1 Programming transactions causing fragmentation rules to become invalid
Daibhid666 opened a new issue, #26070:
URL: https://github.com/apache/shardingsphere/issues/26070
## Bug Report
The spi mechanism injects custom sharding algorithms, and the sharding rules are invalidated using spring programed transactions
**For English only**, other languages will not accept.
Before report a bug, make sure you have:
- Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues).
- Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview).
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!
### Which version of ShardingSphere did you use?
shardingsphere-jdbc-core-spring-boot-starter5.3.1
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
### Expected behavior
### Actual behavior
### Reason analyze (If you can)
### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
### Example codes for reproduce this issue (such as a github link).
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] RaigorJiang commented on issue #26070: shardingsphere-jdbc-core-spring-boot-starter5.3.1 Programming transactions causing fragmentation rules to become invalid
Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang commented on issue #26070:
URL: https://github.com/apache/shardingsphere/issues/26070#issuecomment-1578513529
Hi @Daibhid666
Please provide enough information according to the issue template, thank you!
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] Daibhid666 commented on issue #26070: shardingsphere-jdbc-core-spring-boot-starter5.3.1 Programming transactions causing fragmentation rules to become invalid
Posted by "Daibhid666 (via GitHub)" <gi...@apache.org>.
Daibhid666 commented on issue #26070:
URL: https://github.com/apache/shardingsphere/issues/26070#issuecomment-1582056894
@RaigorJiang Is it convenient to add a contact information for remote? demo is not available
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] Daibhid666 commented on issue #26070: shardingsphere-jdbc-core-spring-boot-starter5.3.1 Programming transactions causing fragmentation rules to become invalid
Posted by "Daibhid666 (via GitHub)" <gi...@apache.org>.
Daibhid666 commented on issue #26070:
URL: https://github.com/apache/shardingsphere/issues/26070#issuecomment-1582208030
yes! Bring new problems? dynamic-datasource-spring-boot-starter3.2.1 and ShardingSphere-jDBcd-core-spring-boot-Starter5.2.1 Integrated sharding rules take effect by adjusting data sources, but transactions do not appear to take effect
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] Daibhid666 commented on issue #26070: shardingsphere-jdbc-core-spring-boot-starter5.3.1 Programming transactions causing fragmentation rules to become invalid
Posted by "Daibhid666 (via GitHub)" <gi...@apache.org>.
Daibhid666 commented on issue #26070:
URL: https://github.com/apache/shardingsphere/issues/26070#issuecomment-1581756139
@RaigorJiang The problem is that with declarative transactions or annotated transactions, the sharding algorithm will not be called, and it will not be routed to the specified shard
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] Daibhid666 commented on issue #26070: shardingsphere-jdbc-core-spring-boot-starter5.3.1 Programming transactions causing fragmentation rules to become invalid
Posted by "Daibhid666 (via GitHub)" <gi...@apache.org>.
Daibhid666 commented on issue #26070:
URL: https://github.com/apache/shardingsphere/issues/26070#issuecomment-1581896381
@RaigorJiang There is no possibility that the sharding rules are invalid due to dynamic data sources

--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] Daibhid666 commented on issue #26070: shardingsphere-jdbc-core-spring-boot-starter5.3.1 Programming transactions causing fragmentation rules to become invalid
Posted by "Daibhid666 (via GitHub)" <gi...@apache.org>.
Daibhid666 commented on issue #26070:
URL: https://github.com/apache/shardingsphere/issues/26070#issuecomment-1581918375
@RaigorJiang There is no api to manually call the following sharding rules to parse the sql route
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] Daibhid666 commented on issue #26070: shardingsphere-jdbc-core-spring-boot-starter5.3.1 Programming transactions causing fragmentation rules to become invalid
Posted by "Daibhid666 (via GitHub)" <gi...@apache.org>.
Daibhid666 commented on issue #26070:
URL: https://github.com/apache/shardingsphere/issues/26070#issuecomment-1581912920



A shardingsphere transaction manager was configured, the @Transactional annotation specified transactions, and the code switched sharding data sources, but the sharding rules still failed
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] RaigorJiang commented on issue #26070: shardingsphere-jdbc-core-spring-boot-starter5.3.1 Programming transactions causing fragmentation rules to become invalid
Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang commented on issue #26070:
URL: https://github.com/apache/shardingsphere/issues/26070#issuecomment-1579770704
@Daibhid666
According to your algorithm fragment, when an exception occurs in the `doSharding` method, it will be routed to the `t_order` table, please check if there is an error log?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] Daibhid666 commented on issue #26070: shardingsphere-jdbc-core-spring-boot-starter5.3.1 Programming transactions causing fragmentation rules to become invalid
Posted by "Daibhid666 (via GitHub)" <gi...@apache.org>.
Daibhid666 commented on issue #26070:
URL: https://github.com/apache/shardingsphere/issues/26070#issuecomment-1582336982
@RaigorJiang shardingsphere-jdbc-core-spring-boot-starter5.2.1 does not support DataSourceTransactionManager transaction manager?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] RaigorJiang commented on issue #26070: shardingsphere-jdbc-core-spring-boot-starter5.3.1 Programming transactions causing fragmentation rules to become invalid
Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang commented on issue #26070:
URL: https://github.com/apache/shardingsphere/issues/26070#issuecomment-1582171062
@Daibhid666
Well, good news! Do you mean that when add transaction, the SQL is not routed into ShardingSphereDataSource?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] Daibhid666 commented on issue #26070: shardingsphere-jdbc-core-spring-boot-starter5.3.1 Programming transactions causing fragmentation rules to become invalid
Posted by "Daibhid666 (via GitHub)" <gi...@apache.org>.
Daibhid666 commented on issue #26070:
URL: https://github.com/apache/shardingsphere/issues/26070#issuecomment-1582316557



@RaigorJiang The above image shows that the shardingsphere data source is first loaded, and then the shardingsphere data source is handed over to dynamic data source management. The shardingsphere data source is injected back into the spring transaction manager. Transaction not in effect
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] Daibhid666 commented on issue #26070: shardingsphere-jdbc-core-spring-boot-starter5.3.1 Programming transactions causing fragmentation rules to become invalid
Posted by "Daibhid666 (via GitHub)" <gi...@apache.org>.
Daibhid666 commented on issue #26070:
URL: https://github.com/apache/shardingsphere/issues/26070#issuecomment-1582119730
@RaigorJiang Thanks for the Pointers! The problem has been located because the dynamic multi-data source configuration master data source is consistent with the shardingsphere data source and the sharding rules are invalid due to transactions
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] shardingsphere-jdbc-core-spring-boot-starter5.3.1 Programming transactions causing fragmentation rules to become invalid [shardingsphere]
Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu closed issue #26070: shardingsphere-jdbc-core-spring-boot-starter5.3.1 Programming transactions causing fragmentation rules to become invalid
URL: https://github.com/apache/shardingsphere/issues/26070
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] Daibhid666 commented on issue #26070: shardingsphere-jdbc-core-spring-boot-starter5.3.1 Programming transactions causing fragmentation rules to become invalid
Posted by "Daibhid666 (via GitHub)" <gi...@apache.org>.
Daibhid666 commented on issue #26070:
URL: https://github.com/apache/shardingsphere/issues/26070#issuecomment-1579706912
> **[RaigorJiang](/RaigorJiang) ** c
@RaigorJiang The problem has been redescribed, please check
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] RaigorJiang commented on issue #26070: shardingsphere-jdbc-core-spring-boot-starter5.3.1 Programming transactions causing fragmentation rules to become invalid
Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang commented on issue #26070:
URL: https://github.com/apache/shardingsphere/issues/26070#issuecomment-1581861164
That's weird, @Daibhid666 can you provide a demo project to investigate the issue?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] RaigorJiang commented on issue #26070: shardingsphere-jdbc-core-spring-boot-starter5.3.1 Programming transactions causing fragmentation rules to become invalid
Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang commented on issue #26070:
URL: https://github.com/apache/shardingsphere/issues/26070#issuecomment-1579935366
So maybe your log didn't take effect?
From the analysis of known information, the high probability is the routing result caused by this algorithm.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] Daibhid666 commented on issue #26070: shardingsphere-jdbc-core-spring-boot-starter5.3.1 Programming transactions causing fragmentation rules to become invalid
Posted by "Daibhid666 (via GitHub)" <gi...@apache.org>.
Daibhid666 commented on issue #26070:
URL: https://github.com/apache/shardingsphere/issues/26070#issuecomment-1579801443
The sharding algorithm failed, the data was inserted into the t_order table, not the t_order_202306 table, and there was no error log
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] RaigorJiang commented on issue #26070: shardingsphere-jdbc-core-spring-boot-starter5.3.1 Programming transactions causing fragmentation rules to become invalid
Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang commented on issue #26070:
URL: https://github.com/apache/shardingsphere/issues/26070#issuecomment-1582052855
We first need to determine whether the SQL is routed to ShardingSphereDataSource, can you provide a demo?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] RaigorJiang commented on issue #26070: shardingsphere-jdbc-core-spring-boot-starter5.3.1 Programming transactions causing fragmentation rules to become invalid
Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang commented on issue #26070:
URL: https://github.com/apache/shardingsphere/issues/26070#issuecomment-1581909068
> @RaigorJiang There is no possibility that the sharding rules are invalid due to dynamic data sources
If so, you need to confirm whether the INSERT SQL uses sharding data source, maybe the transaction affects the logic of the dynamic data source.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] shardingsphere-jdbc-core-spring-boot-starter5.3.1 Programming transactions causing fragmentation rules to become invalid [shardingsphere]
Posted by "terrymanu (via GitHub)" <gi...@apache.org>.
terrymanu commented on issue #26070:
URL: https://github.com/apache/shardingsphere/issues/26070#issuecomment-2230950218
`shardingsphere-jdbc-core-spring-boot-starter` is deprecated and removed in 5.3.0, please try new version and use ShardingSphere Driver.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org