pt-heartbeat not daemonizing when invoked with --stop --update

Bug #957787 reported by Tom Hodder
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Percona Toolkit moved to https://jira.percona.com/projects/PT
Invalid
Undecided
Unassigned

Bug Description

with the following invocation ;
/usr/bin/pt-heartbeat --user=heartbeat --password=XXX --create-table -D percona --table heartbeat --update -h myserver --interval 10 --sentinel /tmp/pt-heartbeat-sentinel --stop --daemonize

the command is not going into the background, or returning an error.

Revision history for this message
Daniel Nichter (daniel-nichter) wrote :

Can you execute that command with PTDEBUG=1 at the start and ">dbg.txt 2>&1" at the end then attach dbg.txt? The tool should strip the password, but double-check dbg.txt anyway.

Changed in percona-toolkit:
status: New → Triaged
tags: added: daemon pt-heartbeat
Revision history for this message
Baron Schwartz (baron-xaprb) wrote :

I suspect no bug, but just some unexpected interaction with --sentinel and --stop. With no further feedback from the OP I suggest we WontFix this.

Brian Fraser (fraserbn)
Changed in percona-toolkit:
status: Triaged → Incomplete
Revision history for this message
Miguel Angel Nieto (miguelangelnieto) wrote :

Tested with the latest Percona Toolkit and works as expected, it goes to the background.

# pt-heartbeat --user=root --create-table -D percona --table heartbeat --update -h 127.0.0.1 --interval 10 --sentinel /tmp/pt-heartbeat-sentinel --stop --daemonize
Successfully created file /tmp/pt-heartbeat-sentinel
# ps aux | grep pt-heartbeat
root 8240 0.0 0.3 80196 13536 ? Ss 12:37 0:00 perl /usr/bin/pt-heartbeat --user=root --create-table -D percona --table heartbeat --update -h 127.0.0.1 --interval 10 --sentinel /tmp/pt-heartbeat-sentinel --stop --daemonize

Changed in percona-toolkit:
status: Incomplete → Invalid
Revision history for this message
Shahriyar Rzayev (rzayev-sehriyar) wrote :

Percona now uses JIRA for bug reports so this bug report is migrated to: https://jira.percona.com/browse/PT-950

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.