Details
-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 6.4-rc-1
-
Fix Version/s: 6.4, 7.0-milestone-1
-
Component/s: Mail
-
Labels:None
-
Tests:Unit, Integration
-
Difficulty:Unknown
-
Documentation:N/A
-
Documentation in Release Notes:
-
Similar issues:
Description
This is also required to prevent having only N message sent, then have XWiki crashing and loose all the other messages not sent yet.
Current Algorithm:
- Put message reference on the sending queue
- Sender queue creates the message, it's serialized to disk and then sent
What we need instead:
- Put message reference on a prepare queue
- Have a Mail Prepare Thread take all message from that prepare queue, create the message one by one and serialize them one by one and put them on a sending queue
- Have the Mail Sender Thread read from the sending queue, load the message from disk and send it