You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/01/18 11:49:20 UTC
[GitHub] [shardingsphere] zjcnb opened a new issue #14868: [ Example ] Readwrite-splitting example not route read data source.
zjcnb opened a new issue #14868:
URL: https://github.com/apache/shardingsphere/issues/14868
Hi community,
refer to: #14858
```
@Override
@Transactional
public void processSuccess() throws SQLException {
System.out.println("-------------- Process Success Begin ---------------");
List<Long> orderIds = insertData();
printData();
deleteData(orderIds);
printData();
System.out.println("-------------- Process Success Finish --------------");
}
```
Insert and query should split when use readwrite-splitting feature. Because insert and query in a transaction, lead to read always request write 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
[GitHub] [shardingsphere] 13612687938 commented on issue #14868: [ Example ] Readwrite-splitting example not route read data source.
Posted by GitBox <gi...@apache.org>.
13612687938 commented on issue #14868:
URL: https://github.com/apache/shardingsphere/issues/14868#issuecomment-1050603753
with the latest version 5.1.0 (5.0.0 is also), my method just contain query without any insert(or update 、 delete) but always request write 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
[GitHub] [shardingsphere] zjcnb commented on issue #14868: [ Example ] Readwrite-splitting example not route read data source.
Posted by GitBox <gi...@apache.org>.
zjcnb commented on issue #14868:
URL: https://github.com/apache/shardingsphere/issues/14868#issuecomment-1015336424
@tuyendev Can you solve it?
--
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] tuyendev commented on issue #14868: [ Example ] Readwrite-splitting example not route read data source.
Posted by GitBox <gi...@apache.org>.
tuyendev commented on issue #14868:
URL: https://github.com/apache/shardingsphere/issues/14868#issuecomment-1050031502
Now it worked with the latest version. Could you close 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] tuyendev commented on issue #14868: [ Example ] Readwrite-splitting example not route read data source.
Posted by GitBox <gi...@apache.org>.
tuyendev commented on issue #14868:
URL: https://github.com/apache/shardingsphere/issues/14868#issuecomment-1050647982
My bad! I checked, still buggy
--
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] tuyendev edited a comment on issue #14868: [ Example ] Readwrite-splitting example not route read data source.
Posted by GitBox <gi...@apache.org>.
tuyendev edited a comment on issue #14868:
URL: https://github.com/apache/shardingsphere/issues/14868#issuecomment-1050031502
~Now it worked with the latest version. Could you close the issue ?~
Update. Still not work
--
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] zjcnb commented on issue #14868: [ Example ] Readwrite-splitting example not route read data source.
Posted by GitBox <gi...@apache.org>.
zjcnb commented on issue #14868:
URL: https://github.com/apache/shardingsphere/issues/14868#issuecomment-1050650469
> My bad! I checked, still buggy
Yeah, The example project are refactoring, I will tell you when it finished.
,
--
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