pt-online-schema-change doesn't clean up triggers when receiving SIGINT
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Percona Toolkit moved to https://jira.percona.com/projects/PT |
Triaged
|
Undecided
|
Unassigned |
Bug Description
repro steps :
1) start ALTER with pt-osc
2) hit ctrl-c to abort, possibly because the trigger is exhausting thread_stack
3) notice that while the signal is handled ("Exiting on SIGINT."), the code which either removes the triggers or notifies the user that the triggers have not been dropped (with the SQL to drop them) does not run
4) be confused as to why your thread_stack is still exhausted, until you manually drop the triggers
While I understand part of the point of not deleting the triggers is the resume feature, if I ctrl-c out of pt-osc, I personally would prefer the triggers be deleted. At very least, I'd like the code which would warn me that they have not been deleted to run. :)
tags: | added: pt-online-schema-change triggers |
Changed in percona-toolkit: | |
status: | New → Confirmed |
Changed in percona-toolkit: | |
assignee: | nobody → Brian Fraser (fraserbn) |
Changed in percona-toolkit: | |
assignee: | Brian Fraser (fraserbn) → nobody |
status: | Incomplete → Triaged |
Changed in percona-toolkit: | |
milestone: | none → 2.2.6 |
importance: | Undecided → Medium |
Changed in percona-toolkit: | |
importance: | Medium → Undecided |
milestone: | 2.2.6 → none |
Hi,
I can't reproduce this; Hitting Ctrl + C seems to always trigger the message that the triggers & new table won't be dropped. Have you tried with the newest version of the toolkit? If so, could you send the output of running the tool with PTDEBUG?