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/10/10 06:30:27 UTC
[GitHub] [shardingsphere] happyi opened a new issue, #13960: the ShardingAlgorithm disagree in sharding-jdbc and sharding-proxy
happyi opened a new issue, #13960:
URL: https://github.com/apache/shardingsphere/issues/13960
## Bug Report
### Which version of ShardingSphere did you use?
sharding-jdbc:5.0.0
sharding-proxy:5.0.0
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
both
### Expected behavior
get the same table in sharding-jdbc and sharding-proxy
### Actual behavior
the config is the same as follow
```
dataSources:
ds_0:
url: jdbc:mysql://192.168.1.101:3306/test_db?useUnicode=true&characterEncoding=utf-8
username: root
password: 123456
ds_1:
url: jdbc:mysql://192.168.1.102:3306/test_db?useUnicode=true&characterEncoding=utf-8
username: root
password:123456
#
rules:
- !SHARDING
tables:
s_customer_asset:
actualDataNodes: ds_${0..1}.nx_customer_asset_s${0..7}
databaseStrategy:
standard:
shardingColumn: customer_id
shardingAlgorithmName: db_sharding_algorithm
tableStrategy:
standard:
shardingColumn: customer_id
shardingAlgorithmName: table_sharding_algorithm
shardingAlgorithms:
db_sharding_algorithm:
type: HASH_MOD
props:
sharding-count: 2
table_sharding_algorithm:
type: HASH_MOD
props:
sharding-count: 8
```
2 database and 8 table at the sharding-jdbc it will get
```
ds_0.nx_customer_asset_s0
ds_0.nx_customer_asset_s1
ds_0.nx_customer_asset_s2
ds_0.nx_customer_asset_s3
ds_1.nx_customer_asset_s0
ds_1.nx_customer_asset_s1
ds_1.nx_customer_asset_s2
ds_1.nx_customer_asset_s3
```
2 database and 8 table at the sharding-proxy it will get
```
ds_0.nx_customer_asset_s0
ds_0.nx_customer_asset_s2
ds_0.nx_customer_asset_s4
ds_0.nx_customer_asset_s6
ds_1.nx_customer_asset_s1
ds_1.nx_customer_asset_s3
ds_1.nx_customer_asset_s5
ds_1.nx_customer_asset_s7
```
--
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 #13960: the ShardingAlgorithm disagree in sharding-jdbc and sharding-proxy
Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang commented on issue #13960:
URL: https://github.com/apache/shardingsphere/issues/13960#issuecomment-1407602502
This issue has been inactive for a long time, so I will close it.
And it is a issue caused by incorrect sharding configuration.
--
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] github-actions[bot] closed issue #13960: the ShardingAlgorithm disagree in sharding-jdbc and sharding-proxy
Posted by GitBox <gi...@apache.org>.
github-actions[bot] closed issue #13960: the ShardingAlgorithm disagree in sharding-jdbc and sharding-proxy
URL: https://github.com/apache/shardingsphere/issues/13960
--
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] github-actions[bot] commented on issue #13960: the ShardingAlgorithm disagree in sharding-jdbc and sharding-proxy
Posted by GitBox <gi...@apache.org>.
github-actions[bot] commented on issue #13960:
URL: https://github.com/apache/shardingsphere/issues/13960#issuecomment-1272350610
Hello , this issue has not received a reply for several days.
This issue is supposed to be closed.
--
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 closed issue #13960: the ShardingAlgorithm disagree in sharding-jdbc and sharding-proxy
Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang closed issue #13960: the ShardingAlgorithm disagree in sharding-jdbc and sharding-proxy
URL: https://github.com/apache/shardingsphere/issues/13960
--
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