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:
[email protected]


Reply via email to