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 2021/06/18 21:27:56 UTC
[GitHub] [shardingsphere] stelin opened a new issue #10857: Why default-database-strategy is different supported?
stelin opened a new issue #10857:
URL: https://github.com/apache/shardingsphere/issues/10857
## Bug Report
**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?
- 4.0.0.rc2
- 4.1.1
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
- ShardingSphere-JDBC
### Expected behavior
4.0.0.rc2 or 4.1.1 is supported.
### Actual behavior
Only 4.0.0.rc2 is supported, 4.1.1 is not supported.
### 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).
The configuration:
```
spring.shardingsphere.datasource.names=ds_test,ds_test-rw
spring.shardingsphere.datasource.ds_test.type=com.alibaba.druid.pool.DruidDataSource
spring.shardingsphere.datasource.ds_test.driver-class-name=com.mysql.cj.jdbc.Driver
spring.shardingsphere.datasource.ds_test.url=xxx
spring.shardingsphere.datasource.ds_test.username=test
spring.shardingsphere.datasource.ds_test.password=123456
spring.shardingsphere.datasource.ds_test.initial-size=1
spring.shardingsphere.datasource.ds_test-rw.type=com.alibaba.druid.pool.DruidDataSource
spring.shardingsphere.datasource.ds_test-rw.driver-class-name=com.mysql.cj.jdbc.Driver
spring.shardingsphere.datasource.ds_test-rw.url=xxx
spring.shardingsphere.datasource.ds_test-rw.username=test
spring.shardingsphere.datasource.ds_test-rw.password=123456
spring.shardingsphere.datasource.ds_test-rw.initial-size=1
spring.shardingsphere.sharding.master-slave-rules.ds_20001.name=ds_20001
spring.shardingsphere.sharding.master-slave-rules.ds_20001.master-data-source-name=ds_test
spring.shardingsphere.sharding.master-slave-rules.ds_20001.slave-data-source-names[0]=ds_test-rw
spring.shardingsphere.sharding.default-data-source-name=ds_20001
spring.shardingsphere.sharding.default-database-strategy.hint.algorithm-class-name=xxx.xxx.MySharding
spring.shardingsphere.props.sql.show=true
```
The hintShardingAlgorithm:
```
public class MySharding implements HintShardingAlgorithm<String> {
@Override
public Collection<String> doSharding(Collection<String> availableTargetNames, HintShardingValue<String> shardingValue) {
System.out.println(shardingValue);
return availableTargetNames;
}
}
```
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] stelin edited a comment on issue #10857: Why default-database-strategy is supported for different version?
Posted by GitBox <gi...@apache.org>.
stelin edited a comment on issue #10857:
URL: https://github.com/apache/shardingsphere/issues/10857#issuecomment-863880866
Now must to use 4.0.0.rc2.Can not update to 4.1.1
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] RaigorJiang closed issue #10857: Why default-database-strategy is supported for different version?
Posted by GitBox <gi...@apache.org>.
RaigorJiang closed issue #10857:
URL: https://github.com/apache/shardingsphere/issues/10857
--
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] stelin commented on issue #10857: Why default-database-strategy is supported for different version?
Posted by GitBox <gi...@apache.org>.
stelin commented on issue #10857:
URL: https://github.com/apache/shardingsphere/issues/10857#issuecomment-864341034
Must sharding together is very strange!
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] RaigorJiang commented on issue #10857: Why default-database-strategy is supported for different version?
Posted by GitBox <gi...@apache.org>.
RaigorJiang commented on issue #10857:
URL: https://github.com/apache/shardingsphere/issues/10857#issuecomment-924740634
Since this issue has been inactive for more than 30 days, we will close it.
If you still have related questions, please submit a new issue, 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] stelin commented on issue #10857: Why default-database-strategy is different supported?
Posted by GitBox <gi...@apache.org>.
stelin commented on issue #10857:
URL: https://github.com/apache/shardingsphere/issues/10857#issuecomment-863795899
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [shardingsphere] strongduanmu commented on issue #10857: Why default-database-strategy is supported for different version?
Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #10857:
URL: https://github.com/apache/shardingsphere/issues/10857#issuecomment-863833640
--
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.
For queries about this service, please contact Infrastructure at:
users@infra.apache.org