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


   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   ShardingSphere-Proxy 5.0.0-beta
   
   ### Expected behavior
   Use distSQL, add a resource:
   ```sql
   ADD RESOURCE resource_0 (
       HOST=127.0.0.1,
       PORT=3306,
       DB=db0,
       USER=root,
       PASSWORD=root
   );
   ```
   and then drop the resource immediately (did not config any other rule):
   
   ```sql
   DROP RESOURCE resource_0
   ```
   Expect the `resource_0` was deleted.
   
   ### Actual behavior
   Got error:
   ` Error Code: 1101. Resources [resource_0] in the rule are still in used.`
   
   ### Reason analyze
   After the resource added,  proxy refresh `ShardingRule` at the backend.  
`resource_0` may be relted to a `SingleTableRule` in class 
`SingleTableRuleLoader`.
   
   


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