Skip to content

Commit

Permalink
Update DetectsLostConnections.php (#35744) (#35752)
Browse files Browse the repository at this point in the history
AWS Aurora serverless DB sometimes aborts queries while performing scaling. The error returned is:
"SQLSTATE[HY000]: General error: 1105 The last transaction was aborted due to Seamless Scaling. Please retry."

Co-authored-by: Sab <[email protected]>
  • Loading branch information
driesvints and sfilzek authored Dec 29, 2020
1 parent 53e91ef commit d209277
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Illuminate/Database/DetectsLostConnections.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ protected function causedByLostConnection(Throwable $e)
'The connection is broken and recovery is not possible. The connection is marked by the client driver as unrecoverable. No attempt was made to restore the connection.',
'SQLSTATE[HY000] [2002] php_network_getaddresses: getaddrinfo failed: Try again',
'SQLSTATE[HY000]: General error: 7 SSL SYSCALL error: EOF detected',
'SQLSTATE[HY000] [2002] Connection timed out',
'SSL: Connection timed out',
'SQLSTATE[HY000]: General error: 1105 The last transaction was aborted due to Seamless Scaling. Please retry.',
]);
}
}

0 comments on commit d209277

Please sign in to comment.