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

[GitHub] [shardingsphere] RaigorJiang opened a new issue, #24770: Create default sharding strategy failed when there is no sharding rules in database.

RaigorJiang opened a new issue, #24770:
URL: https://github.com/apache/shardingsphere/issues/24770

   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   master 7304be07
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-Proxy
   
   ### Expected behavior
   Create default sharding strategy successfully
   
   ### Actual behavior
   Create default sharding strategy failed when no sharding rules are configured in the database
   <img width="1086" alt="Snipaste_2023-03-23_10-38-23" src="https://user-images.githubusercontent.com/5668787/227093774-54ed69ea-7a69-4223-9865-038cb828e1d9.png">
   
   
   ### Reason analyze (If you can)
   Because the check of current rule config
   ```java
   private void checkCurrentRuleConfiguration(final String databaseName, final ShardingRuleConfiguration currentRuleConfig) {
           ShardingSpherePreconditions.checkNotNull(currentRuleConfig, () -> new MissingRequiredRuleException("Sharding", databaseName));
       }
   ```


-- 
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] Pace2Car commented on issue #24770: Create default sharding strategy failed when there is no sharding rules in database.

Posted by "Pace2Car (via GitHub)" <gi...@apache.org>.
Pace2Car commented on issue #24770:
URL: https://github.com/apache/shardingsphere/issues/24770#issuecomment-1480830937

   I will try it.


-- 
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 #24770: Create default sharding strategy failed when there is no sharding rules in database.

Posted by "RaigorJiang (via GitHub)" <gi...@apache.org>.
RaigorJiang closed issue #24770: Create default sharding strategy failed when there is no sharding rules in database.
URL: https://github.com/apache/shardingsphere/issues/24770


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