You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "foxgo (via GitHub)" <gi...@apache.org> on 2024/09/23 06:49:09 UTC

Re: [I] version 5.4X Sharding algorithm `HASH_MOD` initialization failed, reason is: `tb_xxx` tables sharding configuration can not use auto sharding algorithm [shardingsphere]

foxgo commented on issue #31964:
URL: https://github.com/apache/shardingsphere/issues/31964#issuecomment-2367354848

   用得版本是shardingsphere-jdbc-core 5.4.1,调试代码,发现ShardingRule.checkManualShardingAlgorithm这个方法有问题,报错信息如下:
   org.apache.shardingsphere.sharding.exception.algorithm.sharding.ShardingAlgorithmInitializationException: Sharding algorithm `MOD` initialization failed, reason is: `phone_record` tables sharding configuration can not use auto sharding algorithm..
   	at org.apache.shardingsphere.sharding.rule.ShardingRule.lambda$checkManualShardingAlgorithm$16(ShardingRule.java:223)
   	at org.apache.shardingsphere.infra.exception.core.ShardingSpherePreconditions.checkState(ShardingSpherePreconditions.java:41)
   	at org.apache.shardingsphere.sharding.rule.ShardingRule.checkManualShardingAlgorithm(ShardingRule.java:222)


-- 
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