Benoit Tellier created JAMES-4230:
-------------------------------------

             Summary: Deleted message vault do not work with duplicating blob 
store
                 Key: JAMES-4230
                 URL: https://issues.apache.org/jira/browse/JAMES-4230
             Project: James Server
          Issue Type: Bug
            Reporter: Benoit Tellier


Spotted by a customer

For performance reason deleted message vault relies on asynchronous copy, 
hidden behing the Event Bus.

In duplication mode the blob deletion happens before we get a chace to copy it 
in the deleted message vault by DeleteMessageListener

h3. Proposal

By default, inject MailboxBlobDeletionMode.SYNCHRONOUS
When deleted message vault is active, inject 
MailboxBlobDeletionMode.ASYNCHRONOUS 

DeleteMessageListener (PG, Cassandra) delete the blobs (using the blobstore so 
deletion is effective ONLY in duplicating mode) if 
MailboxBlobDeletionMode.SYNCHRONOUS

Vault copy listener does the same: delete the blob WITH blobStore if and only 
if MailboxBlobDeletionMode.ASYNCHRONOUS.

We'd need a Guice override on the vault module chooser for the default to be 
overriden.




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to