You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2022/03/29 07:24:55 UTC

[GitHub] [shardingsphere] wsm12138 opened a new issue #16463: No connection. Trying to reconnect...

wsm12138 opened a new issue #16463:
URL: https://github.com/apache/shardingsphere/issues/16463


   ## 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?
   5.1.1 SNAPSHOT
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-Proxy
   ### Expected behavior
   NO exception.
   ### Actual behavior
   ```
   mysql> use example_db
   No connection. Trying to reconnect...
   Connection id:    9
   Current database: *** NONE ***
   
   Database changed
   mysql>
   ```
   ### Reason analyze (If you can)
   NO
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   ####  conf/config-schema.yaml
   ```
   schemaName: example_db
   
   dataSources:
     ds_0:
       url: jdbc:mysql://127.0.0.1:3306/ds_0?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
       username: root
       password: root
       connectionTimeoutMilliseconds: 30000
       idleTimeoutMilliseconds: 60000
       maxLifetimeMilliseconds: 1800000
       maxPoolSize: 50
       minPoolSize: 1
     ds_1:
       url: jdbc:mysql://127.0.0.1:3306/ds_1?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
       username: root
       password: root
       connectionTimeoutMilliseconds: 30000
       idleTimeoutMilliseconds: 60000
       maxLifetimeMilliseconds: 1800000
       maxPoolSize: 50
       minPoolSize: 1
     ds_2:
       url: jdbc:mysql://127.0.0.1:3306/ds_2?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
       username: root
       password: root
       connectionTimeoutMilliseconds: 30000
       idleTimeoutMilliseconds: 60000
       maxLifetimeMilliseconds: 1800000
       maxPoolSize: 50
       minPoolSize: 1
     ds_3:
       url: jdbc:mysql://127.0.0.1:3306/ds_3?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
       username: root
       password: root
       connectionTimeoutMilliseconds: 30000
       idleTimeoutMilliseconds: 60000
       maxLifetimeMilliseconds: 1800000
       maxPoolSize: 50
       minPoolSize: 1
     ds_4:
       url: jdbc:mysql://127.0.0.1:3306/ds_4?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
       username: root
       password: root
       connectionTimeoutMilliseconds: 30000
       idleTimeoutMilliseconds: 60000
       maxLifetimeMilliseconds: 1800000
       maxPoolSize: 50
       minPoolSize: 1
     ds_5:
       url: jdbc:mysql://127.0.0.1:3306/ds_5?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
       username: root
       password: root
       connectionTimeoutMilliseconds: 30000
       idleTimeoutMilliseconds: 60000
       maxLifetimeMilliseconds: 1800000
       maxPoolSize: 50
       minPoolSize: 1
     ds_6:
       url: jdbc:mysql://127.0.0.1:3306/ds_6?serverTimezone=UTC&useSSL=false&allowPublicKeyRetrieval=true
       username: root
       password: root
       connectionTimeoutMilliseconds: 30000
       idleTimeoutMilliseconds: 60000
       maxLifetimeMilliseconds: 1800000
       maxPoolSize: 50
       minPoolSize: 1
     ds_20:
       url: jdbc:mysql://127.0.0.1:13306?serverTimezone=UTC&useSSL=false
       username: root
       password: root
       connectionTimeoutMilliseconds: 3000
       idleTimeoutMilliseconds: 60000
       maxLifetimeMilliseconds: 1800000
       maxPoolSize: 50
       minPoolSize: 1
     ds_21:
       url: jdbc:mysql://127.0.0.1:13307?serverTimezone=UTC&useSSL=false
       username: root
       password: root
       connectionTimeoutMilliseconds: 3000
       idleTimeoutMilliseconds: 60000
       maxLifetimeMilliseconds: 1800000
       maxPoolSize: 50
       minPoolSize: 1
     ds_22:
       url: jdbc:mysql://127.0.0.1:13308?serverTimezone=UTC&useSSL=false
       username: root
       password: root
       connectionTimeoutMilliseconds: 3000
       idleTimeoutMilliseconds: 60000
       maxLifetimeMilliseconds: 1800000
       maxPoolSize: 50
       minPoolSize: 1
   rules:
     - !READWRITE_SPLITTING
       dataSources:
         group_1:
           type: Static
           props:
             write-data-source-name: ds_0
             read-data-source-names: ds_1,ds_2
         group_2:
           type: Static
           props:
             write-data-source-name: ds_3
             read-data-source-names: ds_1,ds_4
         group_3:
           type: Static
           props:
             write-data-source-name: ds_5
             read-data-source-names: ds_6
   ```
   #### server.yaml
   ```
   mode:
     type: Cluster
     repository:
       type: ZooKeeper
       props:
         namespace: governance_ds
         server-lists: localhost:2181
         retryIntervalMilliseconds: 500
         timeToLiveSeconds: 60
         maxRetries: 3
         operationTimeoutMilliseconds: 500
     overwrite: false
   #
   rules:
     - !AUTHORITY
       users:
         - root@%:root
         - sharding@:sharding
   ```
   
   ./bin/start.sh 3333
   #### Exception
   ```
   mysql -uroot -h127.0.0.1 -proot -P3333
   mysql -uroot -h127.0.0.1 -proot -P3333 -A
   use example_db
   ```
   #### No Exception
   ```
   mysql -uroot -h127.0.0.1 -proot -P3333  example_db
   ```
   ### Example codes for reproduce this issue (such as a github link).
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] TeslaCN commented on issue #16463: No connection. Trying to reconnect...

Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #16463:
URL: https://github.com/apache/shardingsphere/issues/16463#issuecomment-1081512115


   Hi @wsm12138 
   Could you capture the transmission between MySQL cli and ShardingSphere-Proxy by tools like `tcpdump`?


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] wsm12138 commented on issue #16463: No connection. Trying to reconnect...

Posted by GitBox <gi...@apache.org>.
wsm12138 commented on issue #16463:
URL: https://github.com/apache/shardingsphere/issues/16463#issuecomment-1081513471


   > Hi @wsm12138 Could you capture the transmission between MySQL cli and ShardingSphere-Proxy by tools like `tcpdump`?
   
   i can't. 


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] TeslaCN commented on issue #16463: No connection. Trying to reconnect...

Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #16463:
URL: https://github.com/apache/shardingsphere/issues/16463#issuecomment-1081559243


   Using the MySQL cli 8 can reproduce this issue.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] TeslaCN commented on issue #16463: No connection. Trying to reconnect...

Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #16463:
URL: https://github.com/apache/shardingsphere/issues/16463#issuecomment-1081554439


   I found this issue may cause by #16373.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] strongduanmu commented on issue #16463: No connection. Trying to reconnect...

Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #16463:
URL: https://github.com/apache/shardingsphere/issues/16463#issuecomment-1081561382


   Hi @wsm12138, can you try the latest master branch?


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] strongduanmu commented on issue #16463: No connection. Trying to reconnect...

Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #16463:
URL: https://github.com/apache/shardingsphere/issues/16463#issuecomment-1081568170


   > > Hi @wsm12138, can you try the latest master branch?
   > 
   > I've already tried the latest master branch. commit id 50b3f45a3b60efe28a00ca69d74024d6f5eee443q But the problem still exists.
   
   I will try with mysql cli 8.


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] TeslaCN commented on issue #16463: No connection. Trying to reconnect...

Posted by GitBox <gi...@apache.org>.
TeslaCN commented on issue #16463:
URL: https://github.com/apache/shardingsphere/issues/16463#issuecomment-1081566099


   [error_tcpdump.zip](https://github.com/apache/shardingsphere/files/8369364/error_tcpdump.zip)
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] TeslaCN closed issue #16463: No connection. Trying to reconnect...

Posted by GitBox <gi...@apache.org>.
TeslaCN closed issue #16463:
URL: https://github.com/apache/shardingsphere/issues/16463


   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] wsm12138 commented on issue #16463: No connection. Trying to reconnect...

Posted by GitBox <gi...@apache.org>.
wsm12138 commented on issue #16463:
URL: https://github.com/apache/shardingsphere/issues/16463#issuecomment-1081566215


   > Hi @wsm12138, can you try the latest master branch?
   
   I've already tried the latest master branch.
   commit id 50b3f45a3b60efe28a00ca69d74024d6f5eee443q
   But the problem still exists.
   
   


-- 
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: notifications-unsubscribe@shardingsphere.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org