change "send error to error reporter" from forking to running a process

RESOLVED FIXED

Status

()

bugzilla.mozilla.org
General
RESOLVED FIXED
4 years ago
4 years ago

People

(Reporter: glob, Assigned: glob)

Tracking

Production
x86
Mac OS X

Details

Attachments

(1 attachment)

(Assignee)

Description

4 years ago
currently when bmo sends its error report to its error reporting server (currently arecibo), it forks and detaches to deliver the message in the background.

after bmo was upgraded to 4.2 (along with rhel5 -> rhel6), it looks like this has resulted in a lot of zombie httpd processes.

we should change it to build the payload and serialise it (to json or whatever), and then run a separate script which sends it to arecibo/sentry (either piping the payload to it, or saving to the temp directory and passing the filename as an argument).
(Assignee)

Comment 1

4 years ago
i've disabled arecibo on production until this is sorted.
the syslog entries will now contain a full stacktrace.
(Assignee)

Comment 2

4 years ago
Created attachment 724826 [details] [diff] [review]
patch v1
Attachment #724826 - Flags: review?(dkl)
Comment on attachment 724826 [details] [diff] [review]
patch v1

Review of attachment 724826 [details] [diff] [review]:
-----------------------------------------------------------------

Looks good. I was not able to actually test sending of data to the Arecibo instance but everything else seemed to work fine. r=dkl

::: arecibo.pl
@@ +21,5 @@
> +use lib "$Bin/lib";
> +
> +use Bugzilla;
> +use File::Slurp;
> +use POSIX qw(setsid nice);

Do not see nice() being used. In the old code, you were using nice(19).
Attachment #724826 - Flags: review?(dkl) → review+
(Assignee)

Comment 4

4 years ago
committed a nicer patch:

Committing to: bzr+ssh://bjones%40mozilla.com@bzr.mozilla.org/bmo/4.2/
added arecibo.pl
modified Bugzilla/Arecibo.pm
modified Bugzilla/Install/Filesystem.pm
Committed revision 8684.
Status: NEW → RESOLVED
Last Resolved: 4 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.