Skip to content

Add connection fallback to ActiveRecordProxy

Yorick Peterse requested to merge fix-load-balancing-order into master

What does this MR do and why?

As observed in #341584 (closed), prepending ActiveRecordProxy before setting up the proxy may result in database queries being run that expect a connection. To work around this, ActiveRecordProxy now falls back to retrieving a regular connection when a proxy isn't available yet.

This fixes #341584 (closed)

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Yorick Peterse

Merge request reports