lanchengx opened a new issue #15501:
URL: https://github.com/apache/shardingsphere/issues/15501


   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   
   Master
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ShardingSphere-Proxy
   
   ### Expected behavior
   
   Successfully modified
   
   ### Actual behavior
   
   `scaling is not enabled exception` occurs
   
   <img width="1210" alt="image" 
src="https://user-images.githubusercontent.com/52209337/154654949-8248afe8-3a87-43e2-a767-c325f8b6feb4.png";>
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule 
configuration, when exception occur etc.
   
   ```shell
   mysql> ADD RESOURCE ds_0 (
       HOST=127.0.0.1,
       PORT=3306,
       DB=demo_ds_0,
       USER=root,
       PASSWORD=root
   );
   Query OK, 0 rows affected (0.23 sec)
    
   mysql> ADD RESOURCE ds_1 (
       HOST=127.0.0.1,
       PORT=3306,
       DB=demo_ds_0,
       USER=root,
       PASSWORD=root
   );
   Query OK, 0 rows affected (0.16 sec)
    
   mysql> CREATE SHARDING TABLE RULE t_order (
   RESOURCES(ds_0,ds_1),
   SHARDING_COLUMN=order_id,TYPE(NAME=hash_mod,PROPERTIES("sharding-count"=4)),
   KEY_GENERATE_STRATEGY(COLUMN=another_id,TYPE(NAME=snowflake))
   );
   Query OK, 0 rows affected (0.12 sec)
    
   mysql> Alter SHARDING TABLE RULE t_order (
   RESOURCES(ds_0),
   SHARDING_COLUMN=order_id,TYPE(NAME=hash_mod,PROPERTIES("sharding-count"=4)),
   KEY_GENERATE_STRATEGY(COLUMN=another_id,TYPE(NAME=snowflake))
   );
   1997 - Runtime exception: [scaling is not enabled]
   
   ```
   


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