Fix DB LB errors when escaping input
What does this MR do?
This adds (another) patch to the DB load balancer so we can deal with connection errors when escaping user input. The reason for this is that Rails will in such cases first try to acquire a database connection, and we were not prepared for this. See the commit message for more details.
I marked this as ~S3 since we can sort of work around it by:
- Making sure hosts don't go down (fortunately this doesn't happen very often)
- Taking secondaries out of the load balancer before restarting/stopping them
Despite that it's a pretty serious flaw so we should get this on GitLab.com as soon as we can.
Does this MR meet the acceptance criteria?
-
Changelog entry added, if necessary -
Tests added for this feature/bug - Review
-
Has been reviewed by Backend -
Has been reviewed by Database
-
-
EE specific content should be in the top level /ee
folder -
Conform by the merge request performance guides -
Conform by the style guides -
Squashed related commits together -
End-to-end tests pass ( package-qa
manual pipeline job)