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

   ## Bug Report
   
   **For English only**, other languages will not accept.
   
   Before report a bug, make sure you have:
   
   - Searched open and closed [GitHub 
issues](https://github.com/apache/shardingsphere/issues).
   - Read documentation: [ShardingSphere 
Doc](https://shardingsphere.apache.org/document/current/en/overview).
   
   Please pay attention on issues you submitted, because we maybe need more 
details. 
   If no response anymore and we cannot reproduce it on current information, we 
will **close it**.
   
   Please answer these questions before submitting your issue. Thanks!
   
   ### Which version of ShardingSphere did you use?
   
   master 
[`d08e4ac2`](https://github.com/apache/shardingsphere/commit/d08e4ac2a0ac0e16ed5544cf71b9b59dec66b608)
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-Proxy
   
   ### Expected behavior
   IMPORT DATABASE CONFIGURATION FROM FILE 'filepath';
   
   ### Actual behavior
   Start ShardingSphere-Proxy with cluster mode, connect and run:
   ```sql
   mysql> IMPORT DATABASE CONFIGURATION FROM FILE 'filepath';
   ERROR 19001 (44000): Storage units `[ds_1, ds_0]` do not exist in database 
`readwrite_splliting_db`.
   ```
   ### Reason analyze (If you can)
   This problem only occurs in the cluster mode. The analysis reason is that 
the metadata synchronization is not completed after the new storage node is 
registered.
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule 
configuration, when exception occur etc.
   
   ### Example codes for reproduce this issue (such as a github link).
   ```yaml
   databaseName: readwrite_splliting_db
   
   dataSources:
     ds_0:
       url: 
jdbc:mysql://127.0.0.1:3306/ds0?useSSL=false&useServerPrepStmts=true&cachePrepStmts=true&prepStmtCacheSize=8192&prepStmtCacheSqlLimit=8000&allowPublicKeyRetrieval=true
       username: root
       password:
       connectionTimeoutMilliseconds: 10000
       idleTimeoutMilliseconds: 60000
       maxLifetimeMilliseconds: 1800000
       maxPoolSize: 500
       minPoolSize: 1
     ds_1:
       url: 
jdbc:mysql://127.0.0.1:3306/ds1?useSSL=false&useServerPrepStmts=true&cachePrepStmts=true&prepStmtCacheSize=8192&prepStmtCacheSqlLimit=8000&allowPublicKeyRetrieval=true
       username: root
       password:
       connectionTimeoutMilliseconds: 30000
       idleTimeoutMilliseconds: 60000
       maxLifetimeMilliseconds: 1800000
       maxPoolSize: 500
       minPoolSize: 1
   
   rules:
   - !READWRITE_SPLITTING
     dataSources:
       readwrite_ds:
         staticStrategy:
           writeDataSourceName: ds_0
           readDataSourceNames:
             - ds_1
         loadBalancerName: random
     loadBalancers:
       random:
         type: RANDOM
   ```


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