zope.sendmail - stale lock links in queue prevent timely delivery after recovery from crash
Bug #185749 reported by
Matthew Grant
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Zope 3 |
Won't Fix
|
Undecided
|
Unassigned | ||
zope.sendmail |
Invalid
|
Undecided
|
Unassigned |
Bug Description
After a zope.sendmail queue process thread delivery crash, stale lock links can remain in the queue, prevent timely delivery of mesages that are waiting to be sent - they become 'stuck'.
Solution is to implement a queue cleaning routine that deletes all the '.sending-*' lock links on thread startup, that is optionally turned on by a flag in the zope.sendmail configuration zcml.
Changed in zope3: | |
status: | New → Won't Fix |
To post a comment you must log in.
Matthew Grant wrote:
> Solution is to implement a queue cleaning routine that deletes all the
> '.sending-*' lock links on thread startup, that is optionally turned on
> by a flag in the zope.sendmail configuration zcml.
The problem with that approach is that if there are multiple
threads/processes sharing a queue, some non-stale locks will be cleared
unnecessarily.
There is already code for dealing with stale locks in zope.sendmail. It
may be flawed, but that's the first place to go for solving this.