← Back to team overview

mahara-contributors team mailing list archive

[Bug 685642] Re: Locked crons cause duplicate key errors in postgres logs

 

Andrew, I think you must have forgotten to push your updated patch.  And
as I read the previous version, $DB_IGNORE_SQL_EXCEPTIONS should have
been unset even when there was no exception.

-- 
You received this bug notification because you are a member of Mahara
Contributors, which is subscribed to Mahara.
https://bugs.launchpad.net/bugs/685642

Title:
  Locked crons cause duplicate key errors in postgres logs

Status in Mahara ePortfolio:
  Fix Committed

Bug description:
  This affects postgres, and may affect MySQL too. Although this is currently the intended behaviour of lib/cron.php->cron_lock(), and the SQLException is caught in the php, the error is still seen by the database and logged in the database server's logs.

Although it's not actually an issue, it may confuse/upset admins and is probably best removed.

The easiest solution is to run a get_field before the insert atempt, but obviously this adds an additional database call to the mix. I imagine that this is the reason that the current system was implemented in this manner, so I won't push my fix just yet.

Any thoughts..?





References