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

Implement lock_wait_timeout option for the source database (MySQL) #151

Open
markosutic opened this issue Nov 23, 2022 · 0 comments
Open
Assignees

Comments

@markosutic
Copy link

Is your feature request related to a problem? Please describe.
For the initialization process pg_chameleon will issue FLUSH TABLES WITH READ LOCK on a source database (MySQL) to get transactional snapshot. This action can be blocked with long running transaction on a table and pg_chameleon could wait very log time if lock_wait_timeout is not configured.
It would be nice to be able to specify lock timeout as FTWRL could be risky operation in some production workloads.

Describe the solution you'd like
Implement lock_wait_timeout option for source (MySQL) database. It would be nice to be able set lock_wait_timeout just for pg_chameleon session not affecting others.

Also, I think current config is not intuitive as I would assume that lock_timeout specified under the source database (MySQL) is related to the locks on the MySQL not target database (Postgres).

Thank you

@markosutic markosutic changed the title Implement lock_wait_timeout option for source database (MySQL) Implement lock_wait_timeout option for the source database (MySQL) Nov 23, 2022
@the4thdoctor the4thdoctor self-assigned this Nov 25, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants