Skip to content

no reconnection attempted when runnning a db queue and db goes away during commit #17785

Closed
@cosmok

Description

@cosmok
  • Laravel Version: 5.3.9
  • PHP Version: 7.0.11
  • Database Driver & Version: mysqlnd 5.0.12, mysql 5.7.12

Description:

When using the DB Queue Driver I am noticing that when server connection goes away while committing, transactions count remains the same. (function below):

During the next iteration (of the queue/loop) there are more server connection errors (General error: 2006 MySQL server has gone away) (as the db connection is not reconnected and because connection obj is being reused in daemon mode) (function below):

} elseif ($this->transactions >= 1 && $this->queryGrammar->supportsSavepoints()) {

The behavior has been verified in 5.3. 5.4 appears to be no different in handling this scenario.

How should I handle this?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions