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

Add atomic cut over function that renames locked tables in the same session #1433

Open
whhe opened this issue Jul 19, 2024 · 0 comments · May be fixed by #1434
Open

Add atomic cut over function that renames locked tables in the same session #1433

whhe opened this issue Jul 19, 2024 · 0 comments · May be fixed by #1434

Comments

@whhe
Copy link

whhe commented Jul 19, 2024

#715 once tried to introduce a simpler cut over logic, but it was not merged. Now our team is developing a MySQL compatible binlog service of OceanBase database called OceanBase Binlog Service, which also supports the renaming locked table feature that was introduced to MySQL from 8.0.13. But the OceanBase database does not support parallel DDL now, that is, the rename process in the original atomic cut over function cannot be executed normally. Therefore, in order to support OceanBase Binlog Service, I want to introduce the new cut over function again.

I want to add a function named atomicCutOverRenameWithLock, which will lock the origin table and the ghost table firstly, and rename these two tables in the same session. This function should be called when connecting to OceanBase or MySQL version 8.0.13 or later.

@whhe whhe linked a pull request Jul 19, 2024 that will close this issue
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant