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

README: run_mode flag appears to be obsolete #8

Closed
jogaco opened this issue Feb 18, 2015 · 3 comments
Closed

README: run_mode flag appears to be obsolete #8

jogaco opened this issue Feb 18, 2015 · 3 comments

Comments

@jogaco
Copy link

jogaco commented Feb 18, 2015

From source code, this flag seems to be execute now, with values true, false.

@steverice
Copy link
Collaborator

@jogaco run_mode still controls whether the command will be printed or run by pt-online-schema-change, as stated in the README.
The execute flag seen in source controls whether pt-online-schema-change is passed the --dry-run or --execute flag.

It's a bit of an unfortunate naming collision — I'll look to change that in a future refactor 😁

@jogaco
Copy link
Author

jogaco commented Apr 16, 2015

Something related to this is not working smoothly.
When I use:

  percona:
    run_mode: execute
    defaults-file: /etc/mysql/percona-user.cnf
    username: root
    execute: true
    log: ./log/pt-schema.log

I get:

Segmentation fault (core dumped)
rake aborted!
StandardError: An error has occurred, all later migrations canceled:

If I remove

    execute: true

All works well, even though pt-online-schema-change prints this message:

Starting a dry run.  `mydatabase`.`mytable` will not be altered.  Specify --execute instead of --dry-run to alter the table.

But the changes are there after finishing the rake task.
Maybe something odd with ptosc ? Using 2.2.14.

@steverice
Copy link
Collaborator

Could be a pt-osc issue. What are the contents of your pt-schema.log? You may also want to copy the command from there and run it with a debug flag to get more info.

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

No branches or pull requests

2 participants