Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Lost connection to MySQL server #3132

Closed
lenovore opened this issue Feb 15, 2022 · 3 comments
Closed

Lost connection to MySQL server #3132

lenovore opened this issue Feb 15, 2022 · 3 comments
Assignees
Labels
community issue from community
Milestone

Comments

@lenovore
Copy link

  • dble version: 3.21.10.0
  • configs:

bootstrap.cnf

-DidleTimeout=600000

  • steps:
    Execute a slow sql longer than 600s(the actual execution time is 1200s)

  • expect result:

    1. get data
  • real result:

    1. after sql execution exceeds 600 seconds, dble re-establishes a backend connection and starts executing the slow sql again. at this time, there are 2 same sqls being executed in the backend. when the first sql execution is completed, an error message is returned: Lost connection to MySQL server
    2. dble.log has a warn message: WARN [complexQueryExecutor87] (com.actiontech.dble.backend.mysql.nio.handler.MultiNodeQueryHandler.connectionClose(MultiNodeQueryHandler.java:214)) - backend connect client closed or timeout killed, conn info:MySQLResponseService ...
    3. but everything is ok when change idleTimeout bigger than 1200000.
@yanhuqing666
Copy link
Member

We will try to reproduce the problem

@KlawzZ
Copy link
Collaborator

KlawzZ commented Feb 18, 2022

Reproduced successfully
dble version: :dble-3.21.10.0-97a3b6d73a49cb374020f930c59f82746220b424-20211119064810
bootstrap.cnf: -DidleTimeout=6000
steps: execute sql: select sleep(7);
As long as the execution time is longer than the idleTimeout , the above phenomenon will be reproduced

@yanhuqing666 yanhuqing666 added this to the 3.22.01.0 milestone Feb 22, 2022
@wenyh1
Copy link
Member

wenyh1 commented Feb 24, 2022

From the doc, the introduction to the 'idleTimeout' in bootstrap.cnf is
idletimeout

Is not really an idle connection timeout.
Solution:increase its value.
By the way,We will consider renaming 'idleTimeout'.

@yanhuqing666 yanhuqing666 added the community issue from community label Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
community issue from community
Projects
None yet
Development

No branches or pull requests

4 participants