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
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?
5.5.1
Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
Expected behavior
expected pass the validation and run normally.
Actual behavior
Error Info:
Algorithm 'Object.'INLINE' initialization failed, reason is: `sensitivityShardingAlgorithm` sharding algorithm configuration of `logic_base_visual_release` does not match the actual data nodes.
Reason analyze (If you can)
In org.apache.shardingsphere.sharding.rule.ShardingTable class createDataSourceDataNode method.
But in org.apache.shardingsphere.sharding.rule.checker.ShardingRuleChecker class validateInlineShardingAlgorithm method.
check expression is null == result || result.startsWith(dataNodeInfo.getPrefix())
result val is ds_sensitive, not match prefix result, then throw exception.
Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
The following configuration defines two data sources, named ds_normal and ds_sensitive. The sharding rules are defined using an enumerated value in a Groovy line expression. It works fine in version 5.3.2, but an error occurs when running in version 5.5.1.
Bug Report
For English only, other languages will not accept.
Before report a bug, make sure you have:
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?
5.5.1
Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
Expected behavior
expected pass the validation and run normally.
Actual behavior
Error Info:
Reason analyze (If you can)
In
org.apache.shardingsphere.sharding.rule.ShardingTable
classcreateDataSourceDataNode
method.prefix val is
ds_normal
But in
org.apache.shardingsphere.sharding.rule.checker.ShardingRuleChecker
classvalidateInlineShardingAlgorithm
method.check expression is
null == result || result.startsWith(dataNodeInfo.getPrefix())
result val is
ds_sensitive
, not match prefix result, then throw exception.Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
The following configuration defines two data sources, named ds_normal and ds_sensitive. The sharding rules are defined using an enumerated value in a Groovy line expression. It works fine in version 5.3.2, but an error occurs when running in version 5.5.1.
Example codes for reproduce this issue (such as a github link).
The text was updated successfully, but these errors were encountered: