Closed Bug 1164922 Opened 9 years ago Closed 9 years ago

laglog sometimes chokes on null

Categories

(Socorro :: General, task)

task
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: peterbe, Assigned: peterbe)

Details

Attachments

(1 file)

We rely on `SELECT NOW(), client_addr, sent_location, replay_location FROM pg_stat_replication` to get information about how far behind the replica is of the leader. Sometimes when Postgres is under extreme load these numbers come back as NULL thus breaking the laglog job with a misleading AttributeError when it tries to split a None. 

Better to log and avoid.
Assignee: nobody → peterbe
Status: NEW → ASSIGNED
Commits pushed to master at https://github.com/mozilla/socorro

https://github.com/mozilla/socorro/commit/23076bac66bb901acf9183b70bca64ca265b2a43
fixes bug 1164922 - laglog sometimes chokes on null

https://github.com/mozilla/socorro/commit/1ef6727801a275f1601d02d05b7acc26ecc9a45f
Merge pull request #2787 from peterbe/bug-1164922-laglog-sometimes-chokes-on-null

fixes bug 1164922 - laglog sometimes chokes on null
Status: ASSIGNED → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: