You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
i saw the code sharding-jdbc will check the shardingAlgorithm is ShardingAutoTableAlgorithm
i change the HASH_MOD to INLINE it is have no exception.
private void checkManualShardingAlgorithm(String shardingAlgorithmName, String logicTable) {
ShardingAlgorithm shardingAlgorithm = (ShardingAlgorithm)this.shardingAlgorithms.get(shardingAlgorithmName);
ShardingSpherePreconditions.checkState(!(shardingAlgorithm instanceof ShardingAutoTableAlgorithm), () -> {
return new AlgorithmInitializationException(shardingAlgorithm, "`%s` tables sharding configuration can not use auto sharding algorithm.", new Object[]{logicTable});
});
}
so how to fix it?
The text was updated successfully, but these errors were encountered:
zt9788
changed the title
version 5.5.1 Sharding algorithm HASH_MOD initialization failed,
version 5.5.1 Sharding algorithm HASH_MOD initialization failed...
Dec 26, 2024
autoTables: # Auto Sharding table configuration
t_order_auto: # Logic table name
actualDataSources (?): # Data source names
shardingStrategy: # Sharding strategy
standard: # For single sharding column scenario
shardingColumn: # Sharding column name
shardingAlgorithmName: # Auto sharding algorithm name
auto table only have actualDataSources, there is have no actual-data-nodes, so , if i want use the hash to sharding table , i only use other way?
I don't understand why the hash_mod sharding configuration of tables is not supported, but it is supported in the lower version (5.3.2). Is it for any consideration? In this case, the higher version is not compatible
Of course, I can continue implementing hash partitioning through inline, but there will be many changes
use version 5.5.1(Sharding-JDBC) the when program start there will be throw a exception.
the error is same too #31964
Sharding algorithm HASH_MOD initialization failed, table xxx tables sharding configuration can not use auto sharding algorithm...
I have table session, session_0 ...session_15
it is can work in version 5.3.2
the config is:
i saw the code sharding-jdbc will check the shardingAlgorithm is
ShardingAutoTableAlgorithm
i change the HASH_MOD to INLINE it is have no exception.
so how to fix it?
The text was updated successfully, but these errors were encountered: