square / shift

shift is an application that helps you run schema migrations on MySQL databases

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Patch Failing

amshugongal1 opened this issue · comments

commented

Have been trying to apply patch to pt-online schema change but it keeps failing.
Have tried Percona 2.2.15, 16 and 17 and it seems to fail. The patch gets applied to 15 but when running the command gives following errors:
Percona 2.15
Can't locate YAML/Syck.pm in @inc (you may need to install the YAML::Syck module) (@inc contains: /home/porfirio/perl5/lib/perl5/5.26.1/x86_64-linux-gnu-thread-multi /home/porfirio/perl5/lib/perl5/5.26.1 /home/porfirio/perl5/lib/perl5/x86_64-linux-gnu-thread-multi /home/porfirio/perl5/lib/perl5 /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.26.1 /usr/local/share/perl/5.26.1 /usr/lib/x86_64-linux-gnu/perl5/5.26 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.26 /usr/share/perl/5.26 /home/porfirio/perl5/lib/perl5/5.26.0 /home/porfirio/perl5/lib/perl5/5.26.0/x86_64-linux-gnu-thread-multi /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base) at /home/porfirio/perl5/bin/pt-online-schema-change line 3644.
BEGIN failed--compilation aborted at /home/porfirio/perl5/bin/pt-online-schema-change line 3644.

As mentioned it the issues, tried to install previous versions of perl but no success
Percona 2.2.16 and 2.2.17
Perl: 5.22.0 ,5.24.0 and 5.26.1
Hunk #31 FAILED at 10256.

Have DBI and DBD installed.

commented

I managed to get 2.2.15 working with latest PERL and https://metacpan.org/pod/YAML::Syck.
But its failing with
I0823 14:38:04.536717 03275 runner.go:836] pt-osc output: [2018-08-23 14:38:04] stdout: new_summaries.avl_files was not altered.
I0823 14:38:04.536977 03275 runner.go:836] pt-osc output: [2018-08-23 14:38:04] stderr: 2018-08-23T14:38:04 Error copying rows from new_summaries.avl_files to new_summaries.__avl_files_new: Redundant argument in printf at /home/porfirio/perl5/bin/pt-online-schema-change line 3520.
I0823 14:38:04.537317 03275 runner.go:836] pt-osc output: [2018-08-23 14:38:04] stderr:
E0823 14:38:04.542258 03275 migration.go:448] mig_id=4: last line of stderror was not what we expect (was: ). Something went wrong
I0823 14:38:04.542565 03275 runner.go:1094] mig_id=4: exit signal was signal -1.
I0823 14:38:04.542628 03275 runner.go:1101] mig_id=4: migration died for an unexpected reason
I0823 14:38:04.542667 03275 runner.go:1115] Closing copy percent channel
I0823 14:38:04.542709 03275 runner.go:811] Stopped syncing log file
I0823 14:38:04.810429 03275 runner.go:830] Sent log lines to append_to_file endpoint