garbo-daily is blocking itself while the standalone replica is rebuilt

Bug #553063 reported by Steve McInerney
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Launchpad itself
Fix Released
Medium
Stuart Bishop

Bug Description

2010-03-31 19:13:21 INFO Database replication lagged. Sleeping 300 seconds
2010-03-31 19:18:21 INFO Database replication lagged. Sleeping 300 seconds
2010-03-31 19:23:21 INFO Database replication lagged. Sleeping 300 seconds
2010-03-31 19:28:21 INFO Database replication lagged. Sleeping 300 seconds
....

SELECT replication_lag(42) => 13:35:34.767864

All others are below the 5 min threshhold.

Am assuming that blocking on the standalone is a bad thing™??

affects: launchpad → launchpad-foundations
Revision history for this message
Stuart Bishop (stub) wrote :

This is by design. If it takes 10 hours to rebuild a replica, then 10 hours worth of changes end up being spooled before they can be processed. So we block batch jobs to minimize the amount of changes.

If it is a problem we can revisit it. Perhaps not doing the lag check for critical jobs?

Changed in launchpad-foundations:
status: New → Invalid
Revision history for this message
Stuart Bishop (stub) wrote :

Rethinking on this, the problem is that the LoopTuner timeout code does not kick in when the DBLoopTuner is blocking for replication lag. The loops should terminate after the abort time, even if it never got a chance to do anything due to lag or long running transactions.

Changed in launchpad-foundations:
status: Invalid → Triaged
importance: Undecided → Medium
Revision history for this message
Ursula Junque (ursinha) wrote : Bug fixed by a commit
Changed in launchpad-foundations:
assignee: nobody → Stuart Bishop (stub)
milestone: none → 10.04
status: Triaged → Fix Committed
tags: added: qa-needstesting
Stuart Bishop (stub)
tags: added: qa-ok
removed: qa-needstesting
Revision history for this message
Stuart Bishop (stub) wrote :

There is a bug in _sleep() - we should sleep the number of seconds passed in the input parameter.

tags: added: qa-needstesting
removed: qa-ok
Changed in launchpad-foundations:
status: Fix Committed → In Progress
Revision history for this message
Ursula Junque (ursinha) wrote :
Changed in launchpad-foundations:
status: In Progress → Fix Committed
Stuart Bishop (stub)
Changed in launchpad-foundations:
status: Fix Committed → Fix Released
Stuart Bishop (stub)
tags: added: qa-ok
removed: qa-needstesting
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.