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/06/01 10:26:43 UTC

[GitHub] [shardingsphere] strongduanmu opened a new issue #10607: DistSQL create readwrite splitting rule error after execute drop readwrite splitting rule

strongduanmu opened a new issue #10607:
URL: https://github.com/apache/shardingsphere/issues/10607


   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   
   master branch
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ShardingSphere-Proxy & governance
   
   ### Expected behavior
   
   create readwrite splitting rule success after execute drop readwrite splitting rule
   
   ### Actual behavior
   
   ```sql
   mysql> DROP READWRITE_SPLITTING RULE ms_group_0, ms_group_1;
   
   mysql> CREATE READWRITE_SPLITTING RULE ms_group_0 (
       ->     WRITE_RESOURCE=primary_ds,
       ->     READ_RESOURCES(replica_ds_0,replica_ds_1),
       ->     TYPE(NAME=random)
       -> ), ms_group_1 (
       ->     WRITE_RESOURCE=primary_ds,
       ->     READ_RESOURCES(replica_ds_0,replica_ds_1),
       ->     TYPE(NAME=random)
       -> );
   ERROR 1105 (C1105): Duplicate rule names [ms_group_0, ms_group_1] in schema sharding_db
   ```
   
   ### Reason analyze (If you can)
   
   Not refresh metadata in memory.


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] strongduanmu closed issue #10607: DistSQL create readwrite splitting rule error after execute drop readwrite splitting rule

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


   


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] strongduanmu commented on issue #10607: DistSQL create readwrite splitting rule error after execute drop readwrite splitting rule

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


   DB_DISCOVERY has the same problem.
   
   ```sql
   mysql> DROP DB_DISCOVERY RULE ha_group_0;
   Query OK, 0 rows affected (0.01 sec)
   
   mysql> CREATE DB_DISCOVERY RULE ha_group_0 (
       ->     RESOURCES(resource0,resource1),
       ->     TYPE(NAME=mgr,PROPERTIES(groupName='92504d5b-6dec',keepAliveCron=''))
       -> ),ha_group_1 (
       ->     RESOURCES(resource0,resource1),
       ->     TYPE(NAME=mgr,PROPERTIES(groupName='92504d5b-6dec',keepAliveCron=''))
       -> );
   ERROR 1105 (C1105): Duplicate rule names [ha_group_0] in schema sharding_db
   ```


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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org