The Wayback Machine - https://web.archive.org/web/20201121003731/https://github.com/github/gh-ost/issues/480
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

gh-ost hangs if global variable autcommit is OFF #480

Closed
renecannao opened this issue Aug 30, 2017 · 1 comment
Closed

gh-ost hangs if global variable autcommit is OFF #480

renecannao opened this issue Aug 30, 2017 · 1 comment

Comments

@renecannao
Copy link

@renecannao renecannao commented Aug 30, 2017

If global variable autocommit is OFF , gh-ost makes no progress after it creates the tables, and hangs forever.
Here is an example:

2017-08-30 10:17:56 INFO will use time_zone='SYSTEM' on applier
2017-08-30 10:17:56 INFO Examining table structure on applier
2017-08-30 10:17:56 INFO Applier initiated on mtdtbtest01:3306, version 5.6.36-82.1-log
2017-08-30 10:17:56 INFO Droppping table `schemaname`.`_table_tx_gho`
2017-08-30 10:17:56 INFO Table dropped
2017-08-30 10:17:56 INFO Droppping table `schemaname`.`_table_tx_ghc`
2017-08-30 10:17:56 INFO Table dropped
2017-08-30 10:17:56 INFO Creating changelog table `schemaname`.`_table_tx_ghc`
2017-08-30 10:17:56 INFO Changelog table created
2017-08-30 10:17:56 INFO Creating ghost table `schemaname`.`_table_tx_gho`
2017-08-30 10:17:56 INFO Ghost table created
2017-08-30 10:17:56 INFO Altering ghost table `schemaname`.`_table_tx_gho`
2017-08-30 10:17:56 INFO Ghost table altered
2017-08-30 10:17:56 INFO Waiting for ghost table to be migrated. Current lag is 0s
@shlomi-noach
Copy link
Contributor

@shlomi-noach shlomi-noach commented Aug 30, 2017

Thank you!
Solution will be to add &autocommit=true to the connection string on applier connection (and preferably also on the inspector connection)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.