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

   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   master d55fe465dfe7d27d78aad06e1cbfdc96544f8816
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-Proxy
   
   ### Expected behavior
   Alter storage unit successful
   
   ### Actual behavior
   Alter is rejected when multiple storage units are on the same MySQL instance.
   
   To be more precise, `ds_0` can be altered, but `ds_1` cannot.
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule 
configuration, when exception occur etc.
   ```sql
   REGISTER STORAGE UNIT ds_0 (
       
URL="jdbc:mysql://127.0.0.1:3306/demo_ds_0?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true",
       USER="root",
       PASSWORD="123456",
       PROPERTIES("maximumPoolSize"=10)
   );
   
   REGISTER STORAGE UNIT ds_1 (
       
URL="jdbc:mysql://127.0.0.1:3306/demo_ds_1?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true",
       USER="root",
       PASSWORD="123456",
       PROPERTIES("maximumPoolSize"=10)
   );
   
   ALTER STORAGE UNIT ds_1 (
       
URL="jdbc:mysql://127.0.0.1:3306/demo_ds_1?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true",
       USER="root",
       PASSWORD="123456",
       PROPERTIES("maximumPoolSize"=20)
   );
   ```
   
   <img width="984" alt="image" 
src="https://github.com/apache/shardingsphere/assets/5668787/d471e7e9-d855-4f05-aabd-17ec24ff84bb";>
   
   
   


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

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to