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/09/08 07:58:56 UTC

[GitHub] [shardingsphere] menghaoranss opened a new issue #12289: Check whether the rules are complete for ShardingSphere-JDBC

menghaoranss opened a new issue #12289:
URL: https://github.com/apache/shardingsphere/issues/12289


   ## Question
   
   **For English only**, other languages will not accept.
   
   refer to #12195 
   
   In the class `SchemaRulePersistService`, the following method will check whether the rule configurations are complete before persisted.
   
   For ShardingSphere-Proxy, it could run successfully without any rules,  so this is unnecessary logic for proxy. 
   
   For ShardingSphere-JDBC, it should be checked before creating `ShardingSphereDataSource`
   
   
   ```
   private Collection<YamlRuleConfiguration> createYamlRuleConfigurations(final String schemaName, final Collection<RuleConfiguration> ruleConfigs) {
           Collection<RuleConfiguration> configs = new LinkedList<>();
           for (RuleConfiguration each : ruleConfigs) {
               RuleConfigurationCheckerFactory.newInstance(each).ifPresent(checker -> checker.check(schemaName, each));
               configs.add(each);
           }
           return new YamlRuleConfigurationSwapperEngine().swapToYamlRuleConfigurations(configs);
       }
   ```
   
   Task list:
   
   - [ ] Remove checker in `SchemaRulePersistService` to fix #12195 
   - [ ] Add check in ShardingSphere-JDBC


-- 
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] zjcnb commented on issue #12289: Check whether the rules are complete for ShardingSphere-JDBC

Posted by GitBox <gi...@apache.org>.
zjcnb commented on issue #12289:
URL: https://github.com/apache/shardingsphere/issues/12289#issuecomment-915046313


   Hi, i want try to Add check in ShardingSphere-JDBC task


-- 
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] menghaoranss closed issue #12289: Check whether the rules are complete for ShardingSphere-JDBC

Posted by GitBox <gi...@apache.org>.
menghaoranss closed issue #12289:
URL: https://github.com/apache/shardingsphere/issues/12289


   


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