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

get_altconnection can cause attempted writes to a read replica #311

Open
cameron1729 opened this issue May 2, 2023 · 0 comments
Open

get_altconnection can cause attempted writes to a read replica #311

cameron1729 opened this issue May 2, 2023 · 0 comments
Labels
bug Something isn't working

Comments

@cameron1729
Copy link
Contributor

manager::get_altconnection uses the current DB config to create another DB connection. If the current connection is to a read replica, then so will be the alt connection.

This can cause problems in profile::save_record where we first get an alt DB connection then attempt to insert a record.

@brendanheywood brendanheywood added the bug Something isn't working label May 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants